Skip to content

Commit

Permalink
Use correct runtime version
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 12, 2019
1 parent e7399c6 commit 539dce8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,14 @@ function buildHelper(
return babel.transformFromAst(tree, null, {
presets: [[require("@babel/preset-env"), { modules: false }]],
plugins: [
[transformRuntime, { corejs, useESModules: esm }],
[
transformRuntime,
{
corejs,
useESModules: esm,
version: require("@babel/runtime/package.json").version,
},
],
buildRuntimeRewritePlugin(
runtimeName,
path.relative(path.dirname(helperFilename), pkgDirname),
Expand Down

0 comments on commit 539dce8

Please sign in to comment.