From ba5b5fa9cf3d413692c72c56f2317fd3036d4b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Mat=C3=ADas=20Quezada?= Date: Tue, 30 Jan 2024 11:30:22 +0100 Subject: [PATCH 1/2] Add support for .mjs --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index d5e7924..53f49af 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,7 @@ let webpackResolve; const defaultLookups = { '.js': jsLookup, '.jsx': jsLookup, + '.mjs': jsLookup, '.less': sassLookup, // Less and Sass imports are very similar '.sass': sassLookup, '.scss': sassLookup, From 652adfec51b229e1eec0ea6c377a435837094b55 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 10 Apr 2024 21:41:44 +0300 Subject: [PATCH 2/2] Update test.js --- test/test.js | 1 + 1 file changed, 1 insertion(+) 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',