Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): ensure rollup outputs a single file for hydrateFactory (…
…#4023) This commit updates the `generateHydrateFactory` function to include the `inlineDynamicImports` flag in the call to Rollup's `generate` function. This change is made to resolve issues with extra chunks getting "thrown away" by the Stencil compiler if they existed. With this option, Rollup is guaranteed to only ever return one chunk so we don't discard extra output resulting in build errors in some cases (like using the `--prerender` flag). This PR was tested using the project in the PR description by locally building and packing this code and installing into the project. Additional testing was performed in the Ionic Framework by verifying the `angular-server` project builds and generates valid output. Co-authored-by: Tanner Reits <47483144+tanner-reits@users.noreply.github.com>
- Loading branch information