This repository was archived by the owner on Sep 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +3329
-134
lines changed
Expand file tree Collapse file tree 5 files changed +3329
-134
lines changed Original file line number Diff line number Diff line change 11{
2- "presets" : [" react" , " flow " ],
2+ "presets" : [" react" ],
33 "plugins" : [
4+ " syntax-object-rest-spread" ,
45 " transform-es2015-modules-commonjs" ,
56 " transform-flow-strip-types"
67 ]
Original file line number Diff line number Diff line change 3737 "svg-inline-react" : " ^3.0.0"
3838 },
3939 "devDependencies" : {
40+ "@sucrase/webpack-object-rest-spread-plugin" : " ^1.0.0" ,
4041 "babel-jest" : " ^22.4.1" ,
42+ "babel-plugin-syntax-object-rest-spread" : " ^6.13.0" ,
4143 "babel-plugin-transform-es2015-modules-commonjs" : " ^6.26.0" ,
4244 "babel-preset-react" : " ^6.24.1" ,
4345 "devtools-config" : " ^0.0.15" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55const { toolboxConfig } = require ( "devtools-launchpad/index" ) ;
66const getConfig = require ( "./bin/getConfig" ) ;
77const { isDevelopment, isFirefoxPanel} = require ( "devtools-config" ) ;
8+ const ObjectRestSpreadPlugin = require ( "@sucrase/webpack-object-rest-spread-plugin" ) ;
89
910const path = require ( "path" ) ;
1011const projectPath = path . join ( __dirname , "src" ) ;
@@ -40,8 +41,11 @@ webpackConfig.resolve = {
4041 }
4142} ;
4243
43- const extra = { } ;
44- webpackConfig . plugins = [ ] ;
44+ const extra = {
45+ disablePostCSS : true
46+ } ;
47+
48+ webpackConfig . plugins = [ new ObjectRestSpreadPlugin ( ) ] ;
4549if ( ! isDevelopment ( ) ) {
4650 webpackConfig . output . libraryTarget = "umd" ;
4751
You can’t perform that action at this time.
0 commit comments