diff --git a/index.js b/index.js index c12de44..4a4d0b5 100644 --- a/index.js +++ b/index.js @@ -30,6 +30,7 @@ const defaultLookups = { '.sass': sassLookup, '.scss': sassLookup, '.styl': stylusLookup, + '.svelte': svelteLookup, '.ts': tsLookup, '.tsx': tsLookup, '.vue': vueLookup @@ -390,6 +391,14 @@ function commonJSLookup(options) { } function vueLookup(options) { + return sfcLookup(options); +} + +function svelteLookup(options) { + return sfcLookup(options); +} + +function sfcLookup(options) { const { dependency } = options; if (!dependency) { diff --git a/test/test.js b/test/test.js index bc43259..503e4a1 100644 --- a/test/test.js +++ b/test/test.js @@ -20,6 +20,7 @@ describe('filing-cabinet', () => { '.sass', '.scss', '.styl', + '.svelte', '.ts', '.tsx', '.vue'