fix(build): build vue-compat in default exports mode (#4460)
This commit is contained in:
parent
1045590d4b
commit
7575733b8c
@ -81,7 +81,8 @@ function createConfig(format, output, plugins = []) {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
output.exports = 'named'
|
||||
const isCompatBuild = !!packageOptions.compat
|
||||
output.exports = isCompatBuild ? 'default' : 'named'
|
||||
output.sourcemap = !!process.env.SOURCE_MAP
|
||||
output.externalLiveBindings = false
|
||||
|
||||
@ -91,7 +92,6 @@ function createConfig(format, output, plugins = []) {
|
||||
const isBrowserESMBuild = /esm-browser/.test(format)
|
||||
const isNodeBuild = format === 'cjs'
|
||||
const isGlobalBuild = /global/.test(format)
|
||||
const isCompatBuild = !!packageOptions.compat
|
||||
const isCompatPackage = pkg.name === '@vue/compat'
|
||||
|
||||
if (isGlobalBuild) {
|
||||
|
Loading…
Reference in New Issue
Block a user