mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: match subdir under node_module in transpile (#4850)
This commit is contained in:
parent
a51ba8dd93
commit
43ce8e97bc
@ -225,8 +225,10 @@ export default class WebpackBaseConfig {
|
|||||||
{
|
{
|
||||||
test: /\.jsx?$/i,
|
test: /\.jsx?$/i,
|
||||||
exclude: (file) => {
|
exclude: (file) => {
|
||||||
|
file = file.split('node_modules', 2)[1]
|
||||||
|
|
||||||
// not exclude files outside node_modules
|
// not exclude files outside node_modules
|
||||||
if (!/node_modules/.test(file)) {
|
if (!file) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user