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 d84bd2a commit f54f591Copy full SHA for f54f591
packages/plugin-rsc/src/plugin.ts
@@ -158,12 +158,13 @@ export function vitePluginRscMinimal(): Plugin[] {
158
},
159
160
{
161
- name: 'rsc:patch-browser-raw-import',
+ name: 'rsc:vite-client-raw-import',
162
transform: {
163
order: 'post',
164
handler(code) {
165
if (code.includes('__vite_rsc_raw_import__')) {
166
- // inject dynamic import last to avoid Vite adding `?import` query to client references
+ // inject dynamic import last to avoid Vite adding `?import` query
167
+ // to client references (and browser mode server references)
168
return code.replace('__vite_rsc_raw_import__', 'import')
169
}
170
0 commit comments