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 =
|
let entryFile =
|
||||||
format === 'vapor'
|
pkg.name === 'vue' &&
|
||||||
|
(format === 'vapor' || format.startsWith('esm-bundler'))
|
||||||
? 'runtime-with-vapor.ts'
|
? 'runtime-with-vapor.ts'
|
||||||
: /\bruntime\b/.test(format)
|
: /\bruntime\b/.test(format)
|
||||||
? `runtime.ts`
|
? `runtime.ts`
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
export function trimVaporExportsPlugin(format, pkgName) {
|
export function trimVaporExportsPlugin(format, pkgName) {
|
||||||
if (
|
if (
|
||||||
format === 'vapor' ||
|
format === 'vapor' ||
|
||||||
format === 'esm-bundler' ||
|
format.startsWith('esm-bundler') ||
|
||||||
pkgName === '@vue/runtime-vapor'
|
pkgName === '@vue/runtime-vapor'
|
||||||
) {
|
) {
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in New Issue