From 493d7332c6155b723e01709b22dfcf89565c1dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dandelion=20Man=C3=A9?= Date: Sun, 14 Jul 2019 20:05:49 +0100 Subject: [PATCH] tweak: jest loads .mjs last This resolves an issue that caused jest tests to fail when depending on a module that ships .mjs files (encountered via a transitive dep of react-markdown). See https://github.com/facebook/create-react-app/pull/4085 for context. Test plan: I have a future commit which tests a file that depends on react-markdown. The tests fail to run before this commit, and they run without issue afterwards. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6facb8c..3f5eea6 100644 --- a/package.json +++ b/package.json @@ -124,12 +124,12 @@ }, "moduleFileExtensions": [ "web.js", - "mjs", "js", "json", "web.jsx", "jsx", - "node" + "node", + "mjs" ] }, "files": [