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 71bb49c commit 19d2dd6Copy full SHA for 19d2dd6
packages/plugin-rsc/examples/starter/src/repro.tsx
@@ -0,0 +1,14 @@
1
+export function Repro() {
2
+ return (
3
+ <div>
4
+ <form
5
+ action={async () => {
6
+ 'use server'
7
+ console.log('repro')
8
+ }}
9
+ >
10
+ <button>repro</button>
11
+ </form>
12
+ </div>
13
+ )
14
+}
packages/plugin-rsc/src/plugin.ts
@@ -914,6 +914,10 @@ function scanBuildStripPlugin(): Plugin {
914
.map((e) => e.n && `import ${JSON.stringify(e.n)};\n`)
915
.filter(Boolean)
916
.join('')
917
+
918
+ // TODO: keep also import.meta.glob for rolldown-vite
919
+ // https://github.com/vitejs/rolldown-vite/issues/373
920
921
return { code: output, map: { mappings: '' } }
922
},
923
}
0 commit comments