diff --git a/scripts/build-plugins/legacy-build.js b/scripts/build-plugins/legacy-build.js index 3d069d4d..e1a2e1df 100644 --- a/scripts/build-plugins/legacy-build.js +++ b/scripts/build-plugins/legacy-build.js @@ -92,6 +92,7 @@ async function buildLegacyChunk(root, chunkName, code) { ] ] }); + babelPlugin.enforce = "post"; const bundle = await build({ root, configFile: false,