react-server675fbba4
react-servercommit675fbba4020a

fix: router entry chunking

Author
Viktor Lázár <lazarv1982@gmail.com>
Date
Commit
675fbba4020a722ae9c3a0d03105dc4f5e82791e
1 file changed+29 -3
Mpackages/react-server/lib/plugins/file-router/plugin.mjs+29 -3
@@ -2107,7 +2131,8 @@${outletExportLines.join("\n")}
21072131 const exportEntry = pathToFileURL(
21082132 join(cwd, outDir, "static", `${hash}.mjs`)
21092133 );
2110- config.build.rollupOptions.input[`static/${hash}`] = staticSrc;
2134+ config.build.rolldownOptions.input[`static/${hash}`] =
2135+ staticSrc;
21112136 // Streaming loader for *.static.{js,mjs,jsx} files. Mirrors the
21122137 // `config.export` contract: the default export may be an array,
21132138 // a function, an (async) iterable, or an (async) generator