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.
'rolldownVersion' in this.meta
'rolldownVersion' in vite
1 parent 72c7a87 commit af4e16dCopy full SHA for af4e16d
packages/plugin-rsc/src/plugin.ts
@@ -6,6 +6,7 @@ import { pathToFileURL } from 'node:url'
6
import { createRequestListener } from '@remix-run/node-fetch-server'
7
import * as esModuleLexer from 'es-module-lexer'
8
import MagicString from 'magic-string'
9
+import * as vite from 'vite'
10
import {
11
type BuilderOptions,
12
type DevEnvironment,
@@ -1269,7 +1270,7 @@ function customOptimizerMetadataPlugin({
1269
1270
environments: {
1271
client: {
1272
optimizeDeps:
- 'rolldownVersion' in this.meta
1273
+ 'rolldownVersion' in vite
1274
? ({
1275
rolldownOptions: {
1276
plugins: [optimizerPluginRolldown()],
0 commit comments