We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddba69 commit c41600aCopy full SHA for c41600a
lib/bootstrap-local.js
@@ -42,7 +42,7 @@ require.extensions['.ts'] = function(m, filename) {
42
// });
43
44
// If we're running locally, meaning npm linked. This is basically "developer mode".
45
-if (!__dirname.match(/\/node_modules\//)) {
+if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) {
46
const packages = require('./packages');
47
48
// We mock the module loader so that we can fake our packages when running locally.
0 commit comments