diff --git a/index.js b/index.js index 9d0ccb9..8a5b46d 100644 --- a/index.js +++ b/index.js @@ -26,6 +26,7 @@ let webpackResolve; const defaultLookups = { '.js': jsLookup, '.jsx': jsLookup, + '.mjs': jsLookup, '.less': sassLookup, // Less and Sass imports are very similar '.sass': sassLookup, '.scss': sassLookup, diff --git a/test/test.js b/test/test.js index 6bca2b5..3e0e7eb 100644 --- a/test/test.js +++ b/test/test.js @@ -16,6 +16,7 @@ describe('filing-cabinet', () => { const expected = [ '.js', '.jsx', + '.mjs', '.less', '.sass', '.scss',