Skip to content

Commit

Permalink
Merge branch 'feat-rsc' into feat-rsc-to-ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Dec 25, 2023
2 parents b2fd99a + 645d42a commit fd7993b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ice/src/webpack/ServerCompilerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export default class ServerCompilerPlugin {
await this.ensureRoutesConfig();
if (compilation) {
// Option of compilationInfo need to be object, while it may changed during multi-time compilation.
this.compilerOptions.compilationInfo.assetsManifest =
JSON.parse(compilation.getAsset('assets-manifest.json').source.source().toString());
if (compilation.getAsset('react-client-manifest.json')) {
// @ts-ignore
this.compilerOptions.compilationInfo.rscManifest =
Expand All @@ -48,7 +50,6 @@ export default class ServerCompilerPlugin {
this.compilerOptions.compilationInfo.reactSSRModuleMapping =
JSON.parse(compilation.getAsset('react-ssr-module-mapping.json').source.source().toString());
}
JSON.parse(compilation.getAsset('assets-manifest.json').source.source().toString());
}
// For first time, we create a new task.
// The next time, we use incremental build so do not create task again.
Expand Down

0 comments on commit fd7993b

Please sign in to comment.