From: Evan You Date: Sun, 8 Dec 2024 12:51:42 +0000 (+0800) Subject: build: fix esm-bundler vapor re-exports X-Git-Tag: v3.6.0-alpha.1~16^2~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f449346c9f471cdba7ee88ce28d015cee67b8cc;p=thirdparty%2Fvuejs%2Fcore.git build: fix esm-bundler vapor re-exports --- diff --git a/rollup.config.js b/rollup.config.js index 3ae0665145..a3e87dc357 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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` diff --git a/scripts/trim-vapor-exports.js b/scripts/trim-vapor-exports.js index 4ccdf8ac46..9bfe6e58ca 100644 --- a/scripts/trim-vapor-exports.js +++ b/scripts/trim-vapor-exports.js @@ -13,7 +13,7 @@ export function trimVaporExportsPlugin(format, pkgName) { if ( format === 'vapor' || - format === 'esm-bundler' || + format.startsWith('esm-bundler') || pkgName === '@vue/runtime-vapor' ) { return []