Merge pull request #4099 from dmitrylyzo/fix-win-build

This commit is contained in:
Bill Thornton 2022-10-25 08:46:22 -04:00 committed by GitHub
commit 6760522e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ const config = {
if (packageName.startsWith('@')) {
const parts = module.context
.substring(module.context.lastIndexOf(packageName))
.split('/');
.split(/[\\/]/);
return `node_modules.${parts[0]}.${parts[1]}`;
}