build: fix esm-bundler vapor re-exports

This commit is contained in:
Evan You 2024-12-08 20:51:42 +08:00
parent 4833c1c96e
commit 6f449346c9
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
2 changed files with 3 additions and 2 deletions

View File

@ -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`

View File

@ -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 []