Skip to content

Commit

Permalink
It compiles 10 times faster!
Browse files Browse the repository at this point in the history
Co-authored-by: Ségolène Alquier <[email protected]>
  • Loading branch information
yann120 and Segolene-Alquier committed Nov 8, 2019
1 parent 5a79bb1 commit 595758d
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const plugins = [
[
'babel-plugin-transform-imports',
{
'@material-ui/core': {
// Use "transform: '@material-ui/core/${member}'," if your bundler does not support ES modules
transform: '@material-ui/core/esm/${member}',
preventFullImport: true,
},
'@material-ui/icons': {
// Use "transform: '@material-ui/icons/${member}'," if your bundler does not support ES modules
transform: '@material-ui/icons/esm/${member}',
preventFullImport: true,
},
'@lodash': {
transform: '@lodash/${member}',
preventFullImport: true,
},
},
],
];

module.exports = { plugins };
51 changes: 48 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
]
},
"devDependencies": {
"babel-plugin-transform-imports": "^2.0.0",
"body-parser": "^1.19.0",
"express": "^4.17.1",
"nodemon": "^1.19.4"
Expand Down

0 comments on commit 595758d

Please sign in to comment.