Skip to content

Commit 4f0352e

Browse files
committed
Better Windows fixes
1 parent 5035024 commit 4f0352e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package-bundler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getAdapterReplacementPlugin(importMap = {}, adapterSuffixes = []) {
1818

1919
// File remapping convention
2020
build.onResolve({ filter: /.*/ }, args => {
21-
if(!args.path.startsWith(path.sep) && !args.path.startsWith("." + path.sep) && !args.path.startsWith(".." + path.sep)) {
21+
if(!args.path.startsWith("/") && !args.path.startsWith("./") && !args.path.startsWith("../")) {
2222
return;
2323
}
2424
if(args.resolveDir.includes(path.sep + "node_modules" + path.sep)) {

0 commit comments

Comments
 (0)