From: Evan You Date: Fri, 21 Jan 2022 08:12:25 +0000 (+0800) Subject: build: fix build script X-Git-Tag: v3.2.28~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d80b15ca4317203bcb2ecaa3d58bbfc303d67c4;p=thirdparty%2Fvuejs%2Fcore.git build: fix build script --- diff --git a/rollup.config.js b/rollup.config.js index 5f7b1d5125..6e909274bc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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',