mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Don't transpile generators and async for Node (#707)
I think this should fix #704.
This commit is contained in:
parent
ba1c047512
commit
225e35072c
@ -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: [
|
||||
@ -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',
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user