Skip to content

Commit 6ad95c4

Browse files
author
vasia
committed
fixes
1 parent 85fa13f commit 6ad95c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/compilers/postcss-compiler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const ctx = { parser: true, map: 'inline' }
44
const { plugins } = postcssrc.sync(ctx)
55
const logger = require('../logger')
66
const getVueJestConfig = require('../get-vue-jest-config')
7+
const ensureRequire = require('../ensure-require')
78

89
let prevCheckIsAsync = null
910
function hasAsyncPlugin () {
@@ -41,6 +42,8 @@ function catchError (error, filePath, jestConfig) {
4142
}
4243

4344
module.exports = (content, filePath, jestConfig) => {
45+
ensureRequire('postcss', ['postcss'])
46+
4447
let css = null
4548

4649
const res = postcss(plugins)

0 commit comments

Comments
 (0)