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 73d457b commit 8bb8836Copy full SHA for 8bb8836
packages/plugin-rsc/src/plugin.ts
@@ -382,6 +382,12 @@ export default function vitePluginRsc(
382
383
if (!isInsideClientBoundary(ctx.modules)) {
384
if (this.environment.name === 'rsc') {
385
+ // transform js to surface syntax errors
386
+ for (const mod of ctx.modules) {
387
+ if (mod.type === 'js') {
388
+ await this.environment.transformRequest(mod.url)
389
+ }
390
391
// server hmr
392
ctx.server.environments.client.hot.send({
393
type: 'custom',
0 commit comments