Skip to content

Commit ce064a1

Browse files
committedJan 21, 2023
fix(build): fix cjs re-exports check for compat build
1 parent fb6ff3e commit ce064a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎rollup.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function cjsReExportsPatchPlugin() {
368368
return code.replace(matcher, (_, r1, r2, r3) => {
369369
return `Object.keys(${r1}).forEach(function(k) {${r2}${r3}});`
370370
})
371-
} else if (options.file.endsWith('/vue.cjs.js')) {
371+
} else if (options.file.endsWith('packages/vue/dist/vue.cjs.js')) {
372372
// make sure we don't accidentally miss the rewrite in case Rollup
373373
// changes the output again.
374374
throw new Error('cjs build re-exports rewrite failed.')

0 commit comments

Comments
 (0)
Please sign in to comment.