Don't use useESModules in @babel/runtime build script (#12842)
This commit is contained in:
parent
ba4ac7d587
commit
eefd83794c
@ -230,10 +230,7 @@ function buildHelper(
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[transformRuntime, { corejs, version: runtimeVersion }],
|
||||||
transformRuntime,
|
|
||||||
{ corejs, useESModules: esm, version: runtimeVersion },
|
|
||||||
],
|
|
||||||
buildRuntimeRewritePlugin(runtimeName, helperName),
|
buildRuntimeRewritePlugin(runtimeName, helperName),
|
||||||
esm ? null : addDefaultCJSExport,
|
esm ? null : addDefaultCJSExport,
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user