Skip to content

Commit

Permalink
fix: resolve module and browser conditions for fetched packages i…
Browse files Browse the repository at this point in the history
…n REPL (sveltejs#872)

Resolve `module` and `browser` conditions for fetched packages in REPL
  • Loading branch information
Andarist authored Nov 25, 2024
1 parent 799fd0f commit 0b7a0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async function resolve_from_pkg(
try {
const resolved = resolve.exports(pkg, subpath, {
browser: true,
conditions: ['svelte', 'development']
conditions: ['svelte', 'module', 'browser', 'development']
});

return resolved?.[0];
Expand Down

0 comments on commit 0b7a0cb

Please sign in to comment.