Don't use useESModules in @babel/runtime build script (#12842)

This commit is contained in:
Nicolò Ribaudo
2021-02-22 16:12:32 +01:00
committed by GitHub
parent ba4ac7d587
commit eefd83794c

View File

@@ -230,10 +230,7 @@ function buildHelper(
],
],
plugins: [
[
transformRuntime,
{ corejs, useESModules: esm, version: runtimeVersion },
],
[transformRuntime, { corejs, version: runtimeVersion }],
buildRuntimeRewritePlugin(runtimeName, helperName),
esm ? null : addDefaultCJSExport,
].filter(Boolean),