Skip to content

Commit 3d80b15

Browse files
committed
build: fix build script
1 parent 95d49bf commit 3d80b15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rollup.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,11 @@ function createConfig(format, output, plugins = []) {
151151
// requires a ton of template engines which should be ignored.
152152
let cjsIgnores = []
153153
if (pkg.name === '@vue/compiler-sfc') {
154+
const consolidatePath = require.resolve('@vue/consolidate/package.json', {
155+
paths: [packageDir]
156+
})
154157
cjsIgnores = [
155-
...Object.keys(require('@vue/consolidate/package.json').devDependencies),
158+
...Object.keys(require(consolidatePath).devDependencies),
156159
'vm',
157160
'crypto',
158161
'react-dom/server',

0 commit comments

Comments
 (0)