From 5b0e392bba41a4309fe199870becbdc7614b4a94 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 27 Apr 2018 16:44:52 -0400 Subject: [PATCH] fix: enable whitelist in exclude function --- docs/guide/pre-processors.md | 17 +++++++++++++++++ docs/migrating.md | 17 +++++++++++++++++ lib/plugin.js | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/guide/pre-processors.md b/docs/guide/pre-processors.md index 21dee0f29..37621a059 100644 --- a/docs/guide/pre-processors.md +++ b/docs/guide/pre-processors.md @@ -172,6 +172,23 @@ npm install -D babel-core babel-loader Configuration of Babel can be done via `.babelrc` or `babel-loader` options. +### Excluding node_modules + +It is common to have `exclude: /node_modules/` for JS transpilation rules (e.g. `babel-loader`) that apply to `.js` files. Due to the inference change of v15, if you import a Vue SFC inside `node_modules`, its `