Skip to content

Commit

Permalink
Turn on babel caching
Browse files Browse the repository at this point in the history
Reduces dev build time from ~9.8s to more like 7s

See lcxfs1991/blog#15
  • Loading branch information
kamsar committed Nov 8, 2016
1 parent 8cad4b0 commit 8d383e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/webpack.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = ({
loaders: [
{
test: /\.jsx|js?$/,
loader: 'babel-loader',
loader: 'babel-loader?cacheDirectory=true',
exclude: /node_modules/
},
{
Expand Down
2 changes: 1 addition & 1 deletion build/webpack.static.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = ({
loaders: [
{
test: /\.(jsx|js)$/,
loader: 'babel-loader',
loader: 'babel-loader?cacheDirectory=true',
exclude: /node_modules/
},
{
Expand Down
2 changes: 1 addition & 1 deletion build/webpack.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = ({
loaders: [
{
test: /\.(jsx|js)$/,
loader: 'babel-loader',
loader: 'babel-loader?cacheDirectory=true',
exclude: /node_modules/
},
{
Expand Down

0 comments on commit 8d383e4

Please sign in to comment.