Skip to content

Commit

Permalink
feat: extend default loaders (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
castarco authored Apr 12, 2024
1 parent cf6ca9f commit 85bb84e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ export { minify }
const debugOptimizeDeps = createDebug('rpe:optimize-deps')

const defaultLoaders: { [ext: string]: Loader } = {
'.cjs': 'js',
'.cts': 'ts',
'.js': 'js',
'.jsx': 'jsx',
'.mjs': 'js',
'.mts': 'ts',
'.ts': 'ts',
'.tsx': 'tsx',
}
Expand Down

0 comments on commit 85bb84e

Please sign in to comment.