From 968f510160d81c583e2576dafe1f5d8401aff539 Mon Sep 17 00:00:00 2001 From: Jeremiah Snee <113928685+jeremiah-snee-openx@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:23:06 -0500 Subject: [PATCH] Fix with-nx default webpack resolve mainFields --- packages/webpack/src/utils/with-nx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/utils/with-nx.ts b/packages/webpack/src/utils/with-nx.ts index 05364e83dd037..e4b43af6c5298 100644 --- a/packages/webpack/src/utils/with-nx.ts +++ b/packages/webpack/src/utils/with-nx.ts @@ -21,7 +21,7 @@ const IGNORED_WEBPACK_WARNINGS = [ ]; const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx']; -const mainFields = ['main', 'module']; +const mainFields = ['module', 'main']; const processed = new Set();