From 6abf91300a5cad3685acc2bbfdffcf299e596c11 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:30:11 +0100 Subject: [PATCH] fix: pass options to silence warning fixes #207 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2bd1d13..bcb6a3c 100644 --- a/index.js +++ b/index.js @@ -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 || @@ -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) {