Skip to content

Commit

Permalink
fix(webpack): update withNx mainFields ordering to support tree-shaki…
Browse files Browse the repository at this point in the history
…ng (nrwl#17599)
  • Loading branch information
jeremiah-snee-openx authored and meeroslav committed Jun 23, 2023
1 parent cd4a88e commit 1ef8d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/utils/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const IGNORED_WEBPACK_WARNINGS = [
];

const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
const mainFields = ['main', 'module'];
const mainFields = ['module', 'main'];

const processed = new Set();

Expand Down

0 comments on commit 1ef8d7a

Please sign in to comment.