Skip to content

Commit

Permalink
feat: extend default loaders
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
  • Loading branch information
castarco committed Apr 11, 2024
1 parent cf6ca9f commit 4cee50e
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 4cee50e

Please sign in to comment.