diff --git a/README.md b/README.md index 051792cf..883da11f 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ This loader also supports the following loader-specific option: * `cacheDirectory`: Default `false`. When set, the given directory will be used to cache the results of the loader. Future webpack builds will attempt to read from the cache to avoid needing to run the potentially expensive Babel recompilation process on each run. If the value is set to `true` in options (`{cacheDirectory: true}`), the loader will use the default cache directory in `node_modules/.cache/babel-loader` or fallback to the default OS temporary file directory if no `node_modules` folder could be found in any root directory. -* `cacheIdentifier`: Default is a string composed by the `@babel/core`'s version, the `babel-loader`'s version, the contents of `.babelrc` file if it exists, and the value of the environment variable `BABEL_ENV` with a fallback to the `NODE_ENV` environment variable. This can be set to a custom value to force cache busting if the identifier changes. +* `cacheIdentifier`: Default is a string composed by the `@babel/core`'s version and the `babel-loader`'s version. This can be set to a custom value to force cache busting if the identifier changes. The final cache id will be determined by the input file path, the resolved Babel config via `Babel.loadPartialConfigAsync` and the `cacheIdentifier`. * `cacheCompression`: Default `true`. When set, each Babel transform output will be compressed with Gzip. If you want to opt-out of cache compression, set it to `false` -- your project may benefit from this if it transpiles thousands of files.