Skip to content

Commit

Permalink
fix(bundler-webpack): fix order of extensionAlias (close #1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 13, 2022
1 parent 619fc12 commit 28eeb9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bundler-webpack/src/config/handleResolve.ts
Expand Up @@ -23,8 +23,8 @@ export const handleResolve = async ({
config.merge({
resolve: {
extensionAlias: {
'.js': ['.ts', '.js'],
'.mjs': ['.mts', '.mjs'],
'.js': ['.js', '.ts'],
'.mjs': ['.mjs', '.mts'],
},
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.json'],
},
Expand Down

0 comments on commit 28eeb9b

Please sign in to comment.