Skip to content

Commit

Permalink
fix: remove babel-plugin-transform-async-to-promises from default plu…
Browse files Browse the repository at this point in the history
…gin list

with babel-plugin-transform-async-to-promises added into default plugin list, it is impossible to
**not** transform async await syntax even when targetting modern browsers.

fix #50
  • Loading branch information
osdevisnot committed Oct 6, 2020
1 parent a071f34 commit 205d840
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"babel-plugin-emotion": "10.0.33",
"babel-plugin-macros": "2.8.0",
"babel-plugin-styled-components": "1.11.1",
"babel-plugin-transform-async-to-promises": "0.8.15",
"cz-conventional-changelog": "3.3.0",
"deepmerge": "4.2.2",
"getopts": "2.2.5",
Expand Down
2 changes: 0 additions & 2 deletions src/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import presetReact from '@babel/preset-react'

// Babel plugins
import pluginDevExpression from 'babel-plugin-dev-expression'
import pluginAsyncToPromise from 'babel-plugin-transform-async-to-promises'
import pluginDecorators from '@babel/plugin-proposal-decorators'
import pluginTransformRegen from '@babel/plugin-transform-regenerator'
import pluginStyledComponents from 'babel-plugin-styled-components'
Expand Down Expand Up @@ -68,7 +67,6 @@ export const babelConfig = (command, pkg, options) => {

const plugins = [
pluginDevExpression,
[pluginAsyncToPromise, { inlineHelpers: true, externalHelpers: true }],
[pluginDecorators, { legacy: true }],
[pluginTransformRegen, { async: false }],
useStyledComponents && pluginStyledComponents,
Expand Down

0 comments on commit 205d840

Please sign in to comment.