Skip to content

Commit c41600a

Browse files
authored
fix(bootstrap): fix windows node_modules path (#2037)
1 parent 9ddba69 commit c41600a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootstrap-local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ require.extensions['.ts'] = function(m, filename) {
4242
// });
4343

4444
// If we're running locally, meaning npm linked. This is basically "developer mode".
45-
if (!__dirname.match(/\/node_modules\//)) {
45+
if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) {
4646
const packages = require('./packages');
4747

4848
// We mock the module loader so that we can fake our packages when running locally.

0 commit comments

Comments
 (0)