Skip to content

Commit 10f130b

Browse files
authored
Update packages/repl/src/lib/workers/npm.ts
1 parent db36e79 commit 10f130b

File tree

1 file changed

+1
-1
lines changed
  • packages/repl/src/lib/workers

1 file changed

+1
-1
lines changed

packages/repl/src/lib/workers/npm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function normalize_path(pkg: Package, path: string, importee: string, imp
203203
? ['index.js', 'index.mjs', 'index.cjs']
204204
: ['', '.js', '.mjs', '.cjs', '/index.js', '/index.mjs', '/index.cjs'];
205205
for (const suffix of suffixes) {
206-
let with_suffix = (path + suffix).replace(/\/+/g, '/');
206+
let with_suffix = path + suffix;
207207

208208
if (pkg.meta.browser) {
209209
with_suffix = pkg.meta.browser[`./${with_suffix}`]?.replace('./', '') ?? with_suffix;

0 commit comments

Comments
 (0)