Skip to content

Commit

Permalink
Merge pull request #208 from sveltejs/dummdidumm-patch-1
Browse files Browse the repository at this point in the history
fix: pass options to silence warning
  • Loading branch information
Rich-Harris authored Mar 2, 2023
2 parents 2a7647f + 6abf913 commit c4c9f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function (options = {}) {
/**
* Resolve an import's full filepath.
*/
async resolveId(importee, importer) {
async resolveId(importee, importer, options) {
if (cache_emit.has(importee)) return importee;
if (
!importer ||
Expand Down Expand Up @@ -95,7 +95,7 @@ module.exports = function (options = {}) {
return path.resolve(dir, pkg.svelte);
}

const resolved = await this.resolve(importee, importer, { skipSelf: true });
const resolved = await this.resolve(importee, importer, { skipSelf: true, ...options });

// if we can't resolve this import without the `svelte` condition, warn the user
if (!resolved) {
Expand Down

0 comments on commit c4c9f1f

Please sign in to comment.