Skip to content

Commit

Permalink
fix: pass options to silence warning
Browse files Browse the repository at this point in the history
fixes #207
  • Loading branch information
dummdidumm authored Mar 2, 2023
1 parent 2a7647f commit 6abf913
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 6abf913

Please sign in to comment.