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: docs/config/index.md
-36
Original file line number
Diff line number
Diff line change
@@ -1117,42 +1117,6 @@ Will call [`vi.unstubAllEnvs`](/api/vi#vi-unstuballenvs) before each test.
1117
1117
1118
1118
Will call [`vi.unstubAllGlobals`](/api/vi#vi-unstuballglobals) before each test.
1119
1119
1120
-
### transformMode
1121
-
1122
-
-**Type:**`{ web?, ssr? }`
1123
-
1124
-
Determine the transform method of modules
1125
-
1126
-
#### transformMode.ssr
1127
-
1128
-
-**Type:**`RegExp[]`
1129
-
-**Default:**`[/\.([cm]?[jt]sx?|json)$/]`
1130
-
1131
-
Use SSR transform pipeline for the specified files.<br>
1132
-
Vite plugins will receive `ssr: true` flag when processing those files.
1133
-
1134
-
#### transformMode.web
1135
-
1136
-
-**Type:**`RegExp[]`
1137
-
-**Default:***modules other than those specified in `transformMode.ssr`*
1138
-
1139
-
First do a normal transform pipeline (targeting browser), then do a SSR rewrite to run the code in Node.<br>
1140
-
Vite plugins will receive `ssr: false` flag when processing those files.
1141
-
1142
-
When you use JSX as component models other than React (e.g. Vue JSX or SolidJS), you might want to config as following to make `.tsx` / `.jsx` transformed as client-side components:
0 commit comments