This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Update to latest react, redux, and various supporting libs (#228)
This updates nearly all core libraries, as well as removal of a few things which weren't needed.
- Loading branch information
Showing
104 changed files
with
18,469 additions
and
13,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/node_modules/ | ||
/config/ | ||
/scripts/ | ||
babel.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module.exports = function(api) { | ||
api.cache.using(() => process.env.NODE_ENV === 'development'); | ||
|
||
return { | ||
presets: ['@babel/react', '@babel/env'], | ||
plugins: [ | ||
'emotion', | ||
'lodash', | ||
'babel-plugin-idx', | ||
'@babel/plugin-syntax-dynamic-import', | ||
'@babel/plugin-proposal-object-rest-spread', | ||
'@babel/plugin-transform-runtime', | ||
// NOTE: The order of the decorator and class-property plugins is important | ||
// here. Decorators must be processed first before class properties, see: | ||
// https://babeljs.io/docs/en/plugins#plugin-ordering | ||
['@babel/plugin-proposal-decorators', {legacy: true}], | ||
['@babel/plugin-proposal-class-properties', {loose: true}] | ||
], | ||
env: { | ||
production: { | ||
plugins: [ | ||
[ | ||
'transform-react-remove-prop-types', | ||
{ | ||
mode: 'remove', // remove from bundle | ||
removeImport: true, // removes `prop-types` import statements | ||
classNameMatchers: [ | ||
'SelectField', | ||
'FormField', | ||
'AsyncComponent', | ||
'AsyncView' | ||
], | ||
additionalLibraries: [/app\/sentryTypes$/] | ||
} | ||
] | ||
] | ||
}, | ||
development: { | ||
plugins: [ | ||
['emotion', {sourceMap: true, autoLabel: true}], | ||
'@babel/plugin-transform-react-jsx-source' | ||
] | ||
}, | ||
test: { | ||
plugins: [['emotion', {autoLabel: true}], 'dynamic-import-node'] | ||
} | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.