]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): fix cjs re-exports check for compat build
authorEvan You <yyx990803@gmail.com>
Sat, 21 Jan 2023 02:43:51 +0000 (10:43 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 21 Jan 2023 02:43:51 +0000 (10:43 +0800)
rollup.config.mjs

index fe4f45dfd5c23a78a2d28dd894bc58c5d8fb7cbe..44424071b86afcc7fa4a63badc174fd63e6eff26 100644 (file)
@@ -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.')