mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(webpack): allow transpiling package in nested node_modules
(#8205)
This commit is contained in:
parent
a8cc430574
commit
da38f96f03
@ -316,7 +316,7 @@ export default class WebpackBaseConfig {
|
||||
{
|
||||
test: /\.m?jsx?$/i,
|
||||
exclude: (file) => {
|
||||
file = file.split('node_modules', 2)[1]
|
||||
file = file.split(/node_modules(.*)/)[1]
|
||||
|
||||
// not exclude files outside node_modules
|
||||
if (!file) {
|
||||
|
Loading…
Reference in New Issue
Block a user