Commit 6bda4b97 authored by Ville Immonen's avatar Ville Immonen Committed by Dan Abramov
Browse files

Remove custom babel-loader cache dir config (#983)

Upgrade `babel-loader` and remove the cache directory configuration
that was added in #620. `babel-loader` now uses the
`./node_modules/.cache/babel-loader` directory by default, so the
custom config is no longer needed.
parent 7ce4b6e0
No related merge requests found
Showing with 4 additions and 9 deletions
+4 -9
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
var path = require('path'); var path = require('path');
var autoprefixer = require('autoprefixer'); var autoprefixer = require('autoprefixer');
var webpack = require('webpack'); var webpack = require('webpack');
var findCacheDir = require('find-cache-dir');
var HtmlWebpackPlugin = require('html-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
...@@ -122,12 +121,9 @@ module.exports = { ...@@ -122,12 +121,9 @@ module.exports = {
presets: [require.resolve('babel-preset-react-app')], presets: [require.resolve('babel-preset-react-app')],
// @remove-on-eject-end // @remove-on-eject-end
// This is a feature of `babel-loader` for webpack (not Babel itself). // This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/react-scripts/ // It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds. We use findCacheDir() because of: // directory for faster rebuilds.
// https://github.com/facebookincubator/create-react-app/issues/483 cacheDirectory: true
cacheDirectory: findCacheDir({
name: 'react-scripts'
})
} }
}, },
// "postcss" loader applies autoprefixer to our CSS. // "postcss" loader applies autoprefixer to our CSS.
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"babel-core": "6.17.0", "babel-core": "6.17.0",
"babel-eslint": "7.0.0", "babel-eslint": "7.0.0",
"babel-jest": "16.0.0", "babel-jest": "16.0.0",
"babel-loader": "6.2.5", "babel-loader": "6.2.7",
"babel-preset-react-app": "^1.0.0", "babel-preset-react-app": "^1.0.0",
"case-sensitive-paths-webpack-plugin": "1.1.4", "case-sensitive-paths-webpack-plugin": "1.1.4",
"chalk": "1.1.3", "chalk": "1.1.3",
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
"extract-text-webpack-plugin": "1.0.1", "extract-text-webpack-plugin": "1.0.1",
"file-loader": "0.9.0", "file-loader": "0.9.0",
"filesize": "3.3.0", "filesize": "3.3.0",
"find-cache-dir": "0.1.1",
"fs-extra": "0.30.0", "fs-extra": "0.30.0",
"gzip-size": "3.0.0", "gzip-size": "3.0.0",
"html-webpack-plugin": "2.24.0", "html-webpack-plugin": "2.24.0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment