From: Evan You Date: Sat, 21 Jan 2023 02:43:51 +0000 (+0800) Subject: fix(build): fix cjs re-exports check for compat build X-Git-Tag: v3.2.46~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce064a172b3b5bcb096b4984fe0c1a54177ac9c0;p=thirdparty%2Fvuejs%2Fcore.git fix(build): fix cjs re-exports check for compat build --- diff --git a/rollup.config.mjs b/rollup.config.mjs index fe4f45dfd5..44424071b8 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -368,7 +368,7 @@ function cjsReExportsPatchPlugin() { return code.replace(matcher, (_, r1, r2, r3) => { return `Object.keys(${r1}).forEach(function(k) {${r2}${r3}});` }) - } else if (options.file.endsWith('/vue.cjs.js')) { + } else if (options.file.endsWith('packages/vue/dist/vue.cjs.js')) { // make sure we don't accidentally miss the rewrite in case Rollup // changes the output again. throw new Error('cjs build re-exports rewrite failed.')