@vitejs/plugin-rsc 0.5.18 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -394,13 +394,16 @@ function scanBuildStripPlugin({ manager }) {
|
|
|
394
394
|
name: "rsc:scan-strip",
|
|
395
395
|
apply: "build",
|
|
396
396
|
enforce: "post",
|
|
397
|
-
transform: {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
397
|
+
transform: {
|
|
398
|
+
filter: { id: { exclude: exactRegex("\0rolldown/runtime.js") } },
|
|
399
|
+
async handler(code, _id, _options) {
|
|
400
|
+
if (!manager.isScanBuild) return;
|
|
401
|
+
return {
|
|
402
|
+
code: await transformScanBuildStrip(code),
|
|
403
|
+
map: { mappings: "" }
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
}
|
|
404
407
|
};
|
|
405
408
|
}
|
|
406
409
|
const importGlobRE = /\bimport\.meta\.glob(?:<\w+>)?\s*\(/g;
|
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./cjs-D2v1gYgq.js";
|
|
2
|
-
import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-
|
|
2
|
+
import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-Xwi_Uxiv.js";
|
|
3
3
|
import "./transforms-B2EJTNXG.js";
|
|
4
4
|
import "./rpc-EIuXyQpO.js";
|
|
5
5
|
|