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

feat(nuxt,schema): add new appId option and improve chunk determinism #27258

Merged
merged 12 commits into from
May 17, 2024

Conversation

danielroe
Copy link
Member

🔗 Linked issue

📚 Description

This adds a new appId option and passes both appId and buildId via runtimeConfig. This means we don't have all chunk hashes changing on every build. (Caused by entry file chunk hash changing with new buildId, and then every other file that imported the entry file changing because that file name changed.)

Copy link

stackblitz bot commented May 16, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe changed the title feat(nuxt,schema): add new appId option and improve chunk determinism feat(nuxt,schema): add new appId option and improve chunk determinism May 16, 2024
@danielroe danielroe merged commit 3c42e13 into main May 17, 2024
60 checks passed
@danielroe danielroe deleted the fix/determinative-ids branch May 17, 2024 03:41
This was referenced May 17, 2024
* For multi-app projects, the unique name of the Nuxt application.
*/
appId: {
$resolve: (val: string) => val ?? 'nuxt-app',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have a risk of name collision in case appId is not filled in in user land and default value nuxt-app is used multiple times?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, I would add Symbol('nuxt-app') so that the name does not conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants