build: fix build script
This commit is contained in:
parent
95d49bf7e7
commit
3d80b15ca4
@ -151,8 +151,11 @@ function createConfig(format, output, plugins = []) {
|
|||||||
// requires a ton of template engines which should be ignored.
|
// requires a ton of template engines which should be ignored.
|
||||||
let cjsIgnores = []
|
let cjsIgnores = []
|
||||||
if (pkg.name === '@vue/compiler-sfc') {
|
if (pkg.name === '@vue/compiler-sfc') {
|
||||||
|
const consolidatePath = require.resolve('@vue/consolidate/package.json', {
|
||||||
|
paths: [packageDir]
|
||||||
|
})
|
||||||
cjsIgnores = [
|
cjsIgnores = [
|
||||||
...Object.keys(require('@vue/consolidate/package.json').devDependencies),
|
...Object.keys(require(consolidatePath).devDependencies),
|
||||||
'vm',
|
'vm',
|
||||||
'crypto',
|
'crypto',
|
||||||
'react-dom/server',
|
'react-dom/server',
|
||||||
|
Loading…
Reference in New Issue
Block a user