Skip to content

Commit

Permalink
build: fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 21, 2022
1 parent 95d49bf commit 3d80b15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,11 @@ function createConfig(format, output, plugins = []) {
// requires a ton of template engines which should be ignored.
let cjsIgnores = []
if (pkg.name === '@vue/compiler-sfc') {
const consolidatePath = require.resolve('@vue/consolidate/package.json', {
paths: [packageDir]
})
cjsIgnores = [
...Object.keys(require('@vue/consolidate/package.json').devDependencies),
...Object.keys(require(consolidatePath).devDependencies),
'vm',
'crypto',
'react-dom/server',
Expand Down

0 comments on commit 3d80b15

Please sign in to comment.