fix(webpack): allow transpiling package in nested node_modules (#8205)

This commit is contained in:
padinko 2020-11-30 23:26:46 +01:00 committed by GitHub
parent a8cc430574
commit da38f96f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {