From df55177f3ab459ea20470b4b645394105fb7cf15 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 20 Feb 2022 07:15:58 +0530 Subject: [PATCH] fix: `.mjs` imports in `commonjs` export --- src/entries/{basic.mjs => basic.js} | 0 src/entries/{devserver.mjs => devserver.js} | 0 src/index.js | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/entries/{basic.mjs => basic.js} (100%) rename src/entries/{devserver.mjs => devserver.js} (100%) diff --git a/src/entries/basic.mjs b/src/entries/basic.js similarity index 100% rename from src/entries/basic.mjs rename to src/entries/basic.js diff --git a/src/entries/devserver.mjs b/src/entries/devserver.js similarity index 100% rename from src/entries/devserver.mjs rename to src/entries/devserver.js diff --git a/src/index.js b/src/index.js index 371dfdb..c1db18e 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware') -const chunkPathBasic = require.resolve('./entries/basic.mjs') -const chunkPathDevServer = require.resolve('./entries/devserver.mjs') +const chunkPathBasic = require.resolve('./entries/basic') +const chunkPathDevServer = require.resolve('./entries/devserver') class ErrorOverlayPlugin { apply(compiler) {