refactor: replace cache-loader with babel-loader's built-in cache (#6142)

It's supposed to have better performance.
See https://github.com/babel/babel-loader/issues/525#issuecomment-375756108

Besides, this improves webpack 5 compatibilities as cache-loader is now
deprecated
This commit is contained in:
Haoqun Jiang
2020-12-14 10:41:55 +08:00
committed by GitHub
parent c72b6b0abd
commit 3b3cd9060b
5 changed files with 19 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ module.exports = {
## Caching
[cache-loader](https://github.com/webpack-contrib/cache-loader) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/babel-loader`.
Cache options of [babel-loader](https://github.com/babel/babel-loader#options) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/babel-loader`.
## Parallelization
@@ -38,4 +38,3 @@ vue add babel
- `config.rule('js')`
- `config.rule('js').use('babel-loader')`
- `config.rule('js').use('cache-loader')`