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 7e6b57a commit 86fc3deCopy full SHA for 86fc3de
packages/plugin-rsc/src/plugin.ts
@@ -978,6 +978,8 @@ function vitePluginUseClient(
978
const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/
979
980
const serverEnvironmentName = useClientPluginOptions.environment?.rsc ?? 'rsc'
981
+ const browserEnvironmentName =
982
+ useClientPluginOptions.environment?.browser ?? 'client'
983
984
return [
985
{
@@ -1026,8 +1028,7 @@ function vitePluginUseClient(
1026
1028
} else {
1027
1029
if (this.environment.mode === 'dev') {
1030
importId = normalizeViteImportAnalysisUrl(
- // TODO
- server.environments.client,
1031
+ server.environments[browserEnvironmentName]!,
1032
id,
1033
)
1034
referenceKey = importId
0 commit comments