Skip to content

Commit

Permalink
refactor(resolve): sort RESOLVE_EXTENSIONS according to priority
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Oct 21, 2022
1 parent bcd1de7 commit 0266ca9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ export const CONDITIONS: Readonly<Set<string>> = Object.freeze(
* @const {ReadonlyArray<Ext>} RESOLVE_EXTENSIONS
*/
export const RESOLVE_EXTENSIONS: readonly Ext[] = Object.freeze([
'.mjs',
'.mts',
'.cjs',
'.css',
'.cts',
'.js',
'.json',
'.jsx',
'.mjs',
'.mts',
'.node',
'.ts',
'.jsx',
'.tsx',
'.css',
'.json',
'.node',
'.wasm',
'.d.ts',
'.d.mts',
'.d.cts'
'.d.cts',
'.d.ts'
])

0 comments on commit 0266ca9

Please sign in to comment.