Skip to content

Commit

Permalink
fix: Compatibility with ESM exports packages (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker authored Feb 10, 2023
1 parent d304ff1 commit 8c21961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/webpack-config-anansi/src/base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default function makeBaseConfig({
// TODO: remove '.js', '.json', '.wasm' once '...' is well supported in plugins like linaria
extensions: ['.ts', '.tsx', '.mts', '.cts', '.js', '.json', '.wasm', '...'],
extensionAlias: {
'.js': ['.ts', '.tsx', '.js', '.jsx'],
'.mjs': ['.mts', '.mjs'],
'.cjs': ['.cts', '.cjs'],
'.js': ['.js', '.ts', '.tsx', '.jsx'],
'.mjs': ['.mjs', '.mts'],
'.cjs': ['.cjs', '.cts'],
},
fallback: NODE_ALIAS,
plugins:
Expand Down

0 comments on commit 8c21961

Please sign in to comment.