Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: onBundleReady called before manifest is generated in build mode #221

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

alvkn
Copy link
Contributor

@alvkn alvkn commented Nov 16, 2024

There is one issue in #219 that causes the newly introduced onBundleReady callback to be called before the manifest is generated (as a file). The root cause of this issue is that rollup.emitFile (which is used for build mode) only marks the file, and actually all the files are created as a part of the generateBundle hook. To ensure that all the files are already exist in outDir, the flow has been updated to call onBundleReady from the writeBundle hook for build mode. Dev mode is not affected.

@aklinker1 aklinker1 changed the title Fixed onBundleReady called before manifest is generated in build mode fix: onBundleReady called before manifest is generated in build mode Nov 18, 2024
@aklinker1 aklinker1 merged commit 69b44c5 into aklinker1:main Nov 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants