Skip to content

Commit 9750a01

Browse files
Update index.js
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent 1344757 commit 9750a01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ module.exports = function (options = {}) {
8888
}
8989

9090
if (pkg) {
91-
// resolve pkg.svelte first
91+
// resolve pkg.svelte first for backwards compatibility
92+
// we should resolve it after exports longer-term
9293
if (entry === '.' && pkg.svelte) {
9394
return path.resolve(dir, pkg.svelte);
9495
}

0 commit comments

Comments
 (0)