@vitejs/plugin-rsc 0.5.13 → 0.5.14

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
@@ -1,5 +1,5 @@
1
1
  import "./cjs-DH9Oa3zy.js";
2
- import { r as vitePluginRsc, t as getPluginApi } from "./plugin-DSNqWPmA.js";
2
+ import { r as vitePluginRsc, t as getPluginApi } from "./plugin-Ch1dPqbr.js";
3
3
  import "./transforms-D4jDIHgD.js";
4
4
  import "./rpc-DbBe389F.js";
5
5
 
@@ -519,15 +519,6 @@ function vitePluginRsc(rscPluginOptions = {}) {
519
519
  };
520
520
  let hasReactServerDomWebpack = false;
521
521
  return [
522
- {
523
- name: "rsc:builder-api",
524
- buildApp: {
525
- order: "pre",
526
- async handler(builder) {
527
- builder.rsc = { manager };
528
- }
529
- }
530
- },
531
522
  {
532
523
  name: "rsc",
533
524
  async config(config, env) {
@@ -909,7 +900,7 @@ export function createRpcClient(params) {
909
900
  css: rscAssetDeps[id]?.deps.css ?? []
910
901
  }, manager);
911
902
  const assetDeps = collectAssetDeps(bundle);
912
- const entry = Object.values(assetDeps).find((v) => v.chunk.name === "index");
903
+ const entry = Object.values(assetDeps).find((v) => v.chunk.name === "index" && v.chunk.isEntry);
913
904
  assert(entry);
914
905
  const entryUrl = assetsURL(entry.chunk.fileName, manager);
915
906
  const clientReferenceDeps = {};
package/dist/plugin.d.ts CHANGED
@@ -84,8 +84,8 @@ type RscPluginOptions = {
84
84
  */
85
85
  useBuildAppHook?: boolean;
86
86
  /**
87
- * Skip the default buildApp orchestration and expose utilities on `builder.rsc`
88
- * for downstream frameworks to implement custom build pipelines.
87
+ * Skip the default buildApp orchestration for downstream frameworks
88
+ * to implement custom build pipelines using `getPluginApi()`.
89
89
  * @experimental
90
90
  * @default false
91
91
  */
package/dist/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./cjs-DH9Oa3zy.js";
2
- import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-DSNqWPmA.js";
2
+ import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-Ch1dPqbr.js";
3
3
  import "./transforms-D4jDIHgD.js";
4
4
  import "./rpc-DbBe389F.js";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-rsc",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "React Server Components (RSC) support for Vite.",
5
5
  "keywords": [
6
6
  "react",
package/types/index.d.ts CHANGED
@@ -17,18 +17,6 @@ declare module 'vite' {
17
17
  /** Options for `@vitejs/plugin-rsc` */
18
18
  rsc?: import('@vitejs/plugin-rsc').RscPluginOptions
19
19
  }
20
-
21
- interface ViteBuilder {
22
- /**
23
- * RSC plugin API exposed for custom build pipelines.
24
- * Available when using `rsc({ customBuildApp: true })`.
25
- * @experimental
26
- */
27
- rsc: {
28
- /** Access to internal RscPluginManager for controlling build phases */
29
- manager: import('@vitejs/plugin-rsc').RscPluginManager
30
- }
31
- }
32
20
  }
33
21
 
34
22
  export {}