Skip to content

Commit

Permalink
fix: remove loose mode for object rest spread
Browse files Browse the repository at this point in the history
  • Loading branch information
osdevisnot committed Aug 27, 2020
1 parent 974864d commit c50b724
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"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.2.1",
"cz-conventional-changelog": "3.3.0",
"deepmerge": "4.2.2",
"del": "5.1.0",
"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 pluginObjectRestSpread from '@babel/plugin-proposal-object-rest-spread'
import pluginAsyncToPromise from 'babel-plugin-transform-async-to-promises'
import pluginDecorators from '@babel/plugin-proposal-decorators'
import pluginClassProperties from '@babel/plugin-proposal-class-properties'
Expand Down Expand Up @@ -65,7 +64,6 @@ export const babelConfig = (command, pkg, options) => {

const plugins = [
pluginDevExpression,
[pluginObjectRestSpread, { loose: true, useBuiltIns: true }],
[pluginAsyncToPromise, { inlineHelpers: true, externalHelpers: true }],
[pluginDecorators, { legacy: true }],
[pluginClassProperties, { loose: true }],
Expand Down

0 comments on commit c50b724

Please sign in to comment.