Skip to content

Commit

Permalink
fix(build): fix cjs re-exports check for compat build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 21, 2023
1 parent fb6ff3e commit ce064a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit ce064a1

Please sign in to comment.