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 ac101ea commit 0cf67acCopy full SHA for 0cf67ac
packages/plugin-rsc/src/plugins/scan.ts
@@ -1,3 +1,4 @@
1
+import { exactRegex } from '@rolldown/pluginutils'
2
import * as esModuleLexer from 'es-module-lexer'
3
import { walk } from 'estree-walker'
4
import { parseAstAsync, type Plugin } from 'vite'
@@ -15,6 +16,9 @@ export function scanBuildStripPlugin({
15
16
apply: 'build',
17
enforce: 'post',
18
transform: {
19
+ filter: {
20
+ id: { exclude: exactRegex('\0rolldown/runtime.js') },
21
+ },
22
async handler(code, _id, _options) {
23
if (!manager.isScanBuild) return
24
const output = await transformScanBuildStrip(code)
0 commit comments