mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Enable externalHelpers for async transform
Co-Authored-By: marvinhagemeister <marvin@marvinhagemeister.de>
This commit is contained in:
parent
af61efa666
commit
5536a55df1
@ -322,6 +322,9 @@ function createConfig(options, entry, format, writeMeta) {
|
||||
inputOptions: {
|
||||
input: exportType ? resolve(__dirname, '../src/lib/__entry__.js') : entry,
|
||||
external: id => {
|
||||
if (id === 'babel-plugin-transform-async-to-promises/helpers') {
|
||||
return false;
|
||||
}
|
||||
if (options.multipleEntries && id === '.') {
|
||||
return true;
|
||||
}
|
||||
@ -365,7 +368,7 @@ function createConfig(options, entry, format, writeMeta) {
|
||||
'@babel/plugin-syntax-jsx',
|
||||
[
|
||||
'babel-plugin-transform-async-to-promises',
|
||||
{ inlineHelpers: true },
|
||||
{ inlineHelpers: true, externalHelpers: true },
|
||||
],
|
||||
],
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user