Skip to content

Commit

Permalink
feat: remove plugins from typescript rules
Browse files Browse the repository at this point in the history
Both of them are already handled by @wpackio/base preset.
  • Loading branch information
swashata committed Oct 10, 2018
1 parent 019302d commit c410152
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ Object {
Object {
"loader": "babel-loader",
"options": Object {
"plugins": Array [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
],
"presets": Array [
Array [
"@wpackio/base",
Expand Down
10 changes: 6 additions & 4 deletions packages/scripts/src/config/WebpackConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,12 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
loader: 'babel-loader',
options: {
presets: tsPresets,
plugins: [
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
],
// We don't need plugin-proposal-class-properties
// because taken care of by @wpackio/base
// '@babel/proposal-class-properties',
// We don't need object-rest-spread because it is
// already in stage-4 and taken care of by preset-env
// '@babel/proposal-object-rest-spread',
},
},
],
Expand Down

0 comments on commit c410152

Please sign in to comment.