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 3ac08cc commit 8ce2ea1Copy full SHA for 8ce2ea1
1 file changed
packages/plugin-react/src/index.ts
@@ -96,7 +96,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
96
)
97
},
98
async transform(code, id, ssr) {
99
- if (/\.[tj]sx?$/.test(id)) {
+ if (/\.(mjs|[tj]sx?)$/.test(id)) {
100
const plugins = [...userPlugins]
101
102
const parserPlugins: typeof userParserPlugins = [
0 commit comments