Skip to content

Commit

Permalink
fix: add all loader extensions to esbuild include
Browse files Browse the repository at this point in the history
`.mts` and `.cts` were missing
  • Loading branch information
pi0 committed Jun 28, 2024
1 parent 62fa930 commit 8ab22ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type EsbuildOptions = CommonOptions & {
export function esbuild(options: EsbuildOptions): Plugin {
// Extract esBuild options from additional options and apply defaults
const {
include = /\.(ts|js|tsx|jsx)$/,
include = new RegExp(Object.keys(DefaultLoaders).join("|")),
exclude = /node_modules/,
loaders: loaderOptions,
...esbuildOptions
Expand Down

0 comments on commit 8ab22ff

Please sign in to comment.