Skip to content

Commit c4c9f1f

Browse files
authored
Merge pull request #208 from sveltejs/dummdidumm-patch-1
fix: pass options to silence warning
2 parents 2a7647f + 6abf913 commit c4c9f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = function (options = {}) {
5454
/**
5555
* Resolve an import's full filepath.
5656
*/
57-
async resolveId(importee, importer) {
57+
async resolveId(importee, importer, options) {
5858
if (cache_emit.has(importee)) return importee;
5959
if (
6060
!importer ||
@@ -95,7 +95,7 @@ module.exports = function (options = {}) {
9595
return path.resolve(dir, pkg.svelte);
9696
}
9797

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

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

0 commit comments

Comments
 (0)