fix: match subdir under node_module in transpile (#4850)

This commit is contained in:
Xin Du (Clark) 2019-01-24 15:42:02 +00:00 committed by Sébastien Chopin
parent a51ba8dd93
commit 43ce8e97bc

View File

@ -225,8 +225,10 @@ export default class WebpackBaseConfig {
{
test: /\.jsx?$/i,
exclude: (file) => {
file = file.split('node_modules', 2)[1]
// not exclude files outside node_modules
if (!/node_modules/.test(file)) {
if (!file) {
return false
}