make babel plugin run after commonjs one added by vite

This commit is contained in:
Bruno Windels 2021-10-12 16:33:30 +02:00
parent 16918ddb7d
commit 7dce579ac3

View file

@ -92,6 +92,7 @@ async function buildLegacyChunk(root, chunkName, code) {
] ]
] ]
}); });
babelPlugin.enforce = "post";
const bundle = await build({ const bundle = await build({
root, root,
configFile: false, configFile: false,