mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-23 15:49:08 -06:00
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:
@@ -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')`
|
||||
|
||||
Reference in New Issue
Block a user