From 7dce579ac38e6e0bbfe4a0751a3ebbee4582d8ea Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 12 Oct 2021 16:33:30 +0200 Subject: [PATCH] make babel plugin run after commonjs one added by vite --- scripts/build-plugins/legacy-build.js | 1 + 1 file changed, 1 insertion(+) 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,