build: fix esm-bundler vapor re-exports
This commit is contained in:
parent
4833c1c96e
commit
6f449346c9
|
@ -167,7 +167,8 @@ function createConfig(format, output, plugins = []) {
|
|||
}
|
||||
|
||||
let entryFile =
|
||||
format === 'vapor'
|
||||
pkg.name === 'vue' &&
|
||||
(format === 'vapor' || format.startsWith('esm-bundler'))
|
||||
? 'runtime-with-vapor.ts'
|
||||
: /\bruntime\b/.test(format)
|
||||
? `runtime.ts`
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
export function trimVaporExportsPlugin(format, pkgName) {
|
||||
if (
|
||||
format === 'vapor' ||
|
||||
format === 'esm-bundler' ||
|
||||
format.startsWith('esm-bundler') ||
|
||||
pkgName === '@vue/runtime-vapor'
|
||||
) {
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue