Skip to content

Commit

Permalink
Use @babel/plugin-transform-runtime (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser committed May 20, 2022
1 parent ecd6369 commit 6209c27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class BabelTranspiler(
"--plugins @babel/plugin-proposal-object-rest-spread " +
"--plugins @babel/plugin-proposal-nullish-coalescing-operator " +
"--plugins @babel/plugin-transform-property-mutators " +
"--plugins @babel/plugin-transform-runtime " +
s"--out-dir $outDir $constructIgnoreDirArgs"
logger.debug(s"\t+ Babel transpiling $projectPath to $outDir")
ExternalCommand.run(command, in.toString) match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ case class TranspilerGroup(override val config: Config, override val projectPath
"@babel/plugin-proposal-private-methods " +
"@babel/plugin-proposal-object-rest-spread " +
"@babel/plugin-proposal-nullish-coalescing-operator " +
"@babel/plugin-transform-runtime " +
"@babel/plugin-transform-property-mutators"

private def installPlugins(): Boolean = {
Expand Down

0 comments on commit 6209c27

Please sign in to comment.