From 2e86000ccd6447304960db7484a8eb0e7057a630 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Mon, 22 Jun 2020 22:03:35 +0530 Subject: [PATCH] docs: add loadPartialConfig info in README To make it more clear that the options specified here override the existing babel config/ --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43162e80..9e0504f9 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ module: { } ``` +*Please note that this loader internally uses `babel.loadPartialConfig`, which means that it will by default use the configuration from your project specific babel config file and any options you specify here would override those set in the project specific babel config.* + 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.