Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
dummdidumm and benmccann authored Feb 16, 2023
1 parent 1344757 commit 9750a01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ module.exports = function (options = {}) {
}

if (pkg) {
// resolve pkg.svelte first
// resolve pkg.svelte first for backwards compatibility
// we should resolve it after exports longer-term
if (entry === '.' && pkg.svelte) {
return path.resolve(dir, pkg.svelte);
}
Expand Down

0 comments on commit 9750a01

Please sign in to comment.