We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d9361 commit dbec7d6Copy full SHA for dbec7d6
packages/vite/src/node/plugins/esbuild.ts
@@ -281,7 +281,10 @@ export function esbuildPlugin(config: ResolvedConfig): Plugin {
281
const options = config.esbuild as ESBuildOptions
282
const { jsxInject, include, exclude, ...esbuildTransformOptions } = options
283
284
- const filter = createFilter(include || /\.(m?ts|[jt]sx)$/, exclude || /\.js$/)
+ const filter = createFilter(
285
+ include || /\.([cm]?ts|[jt]sx)$/,
286
+ exclude || /\.js$/,
287
+ )
288
289
// Remove optimization options for dev as we only need to transpile them,
290
// and for build as the final optimization is in `buildEsbuildPlugin`
0 commit comments