You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,13 @@
2
2
3
3
## Unreleased
4
4
5
-
- Add support for `.mts` (fixes [#161](https://github.com/vitejs/vite-plugin-react-swc/issues/161))
5
+
## 3.4.1
6
+
7
+
### Add support for `.mts` (fixes [#161](https://github.com/vitejs/vite-plugin-react-swc/issues/161))
8
+
9
+
Using CJS in source code will not work in Vite (and will never be supported), so this is better to only use `.ts`.
10
+
11
+
But to better align with [Vite core defaults](https://vitejs.dev/config/shared-options.html#resolve-extensions), `.mts` extension will now be processed like `.ts`. This maybe reverted in a future major.
0 commit comments