Skip to content

Commit

Permalink
Don't transpile generators and async for Node (#707)
Browse files Browse the repository at this point in the history
I think this should fix #704.
  • Loading branch information
developit authored Aug 23, 2020
1 parent ba1c047 commit 225e350
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/lib/babel-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ export default () => {
name: 'babel-plugin-transform-replace-expressions',
replace: customOptions.defines,
},
!customOptions.modern && {
name: 'babel-plugin-transform-async-to-promises',
inlineHelpers: true,
externalHelpers: false,
minify: true,
},
!customOptions.modern &&
!isNodeTarget && {
name: 'babel-plugin-transform-async-to-promises',
inlineHelpers: true,
externalHelpers: false,
minify: true,
},
!customOptions.modern &&
!isNodeTarget && {
value: [
Expand All @@ -107,10 +108,11 @@ export default () => {
name: '@babel/plugin-proposal-class-properties',
loose: true,
},
!customOptions.modern && {
name: '@babel/plugin-transform-regenerator',
async: false,
},
!customOptions.modern &&
!isNodeTarget && {
name: '@babel/plugin-transform-regenerator',
async: false,
},
{
name: 'babel-plugin-macros',
},
Expand Down

0 comments on commit 225e350

Please sign in to comment.