Skip to content

Commit 0b7a0cb

Browse files
authored
fix: resolve module and browser conditions for fetched packages in REPL (#872)
Resolve `module` and `browser` conditions for fetched packages in REPL
1 parent 799fd0f commit 0b7a0cb

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/repl/src/lib/workers/bundler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ async function resolve_from_pkg(
176176
try {
177177
const resolved = resolve.exports(pkg, subpath, {
178178
browser: true,
179-
conditions: ['svelte', 'development']
179+
conditions: ['svelte', 'module', 'browser', 'development']
180180
});
181181

182182
return resolved?.[0];

0 commit comments

Comments
 (0)