perf(module): declare sideEffects for barrel tree-shaking (2cc2849)#280
Merged
Conversation
Syncs upstream nuxt/ui commit 2cc2849 (#6729) — add a sideEffects field to package.json so consumer bundlers can tree-shake unused JS barrel exports while preserving CSS side effects. - package.json: add "sideEffects": ["**/*.css"] after "main" (glob covers dist/runtime/index.css + .nuxt/b24ui.static.css) - no dependency change → pnpm-lock.yaml untouched Manifest metadata only. Suite: 5485 passed / 6 skipped. Ledger: cursor → 2cc2849; previous entry f951529 reconciled to PR #279. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
IgorShevchik
added a commit
that referenced
this pull request
Jul 15, 2026
Syncs upstream nuxt/ui commit c8e810c (#6718) via the §2 manifest-mirroring rule — bump only where b24ui shares upstream's old range. Mirrored: - root: packageManager pnpm@11.10.0->11.13.0, @floating-ui/dom ^1.7.6->^1.8.0, @tanstack/vue-virtual ^3.13.31->^3.13.32, fuse.js ^7.4.2->^7.5.0, vue-component-type-helpers/vue-tsc ^3.3.6->^3.3.7, eslint ^10.6.0->^10.7.0, vitest ^4.1.9->^4.1.10 - docs: @nuxtjs/mcp-toolkit + nuxt-component-meta ^0.17.2->^0.18.0, vue-component-meta ^3.3.6->^3.3.7 - playgrounds nuxt/vue/demo: vue-tsc ^3.3.6->^3.3.7 Skipped (b24ui deliberately diverges): ai (deferred v6 line vs upstream v7), @ai-sdk/vue (v3), @ai-sdk/mcp (v1), @ai-sdk/anthropic/gateway (absent — uses deepseek), @iconify-json/* (uses b24icons), prettier (already behind at ^3.8.4). Lockfile regenerated with pnpm 11.13.0; AI-SDK v6/v3/v1 lines untouched. Suite: 5485 passed / 6 skipped. Ledger: cursor -> c8e810c; previous entry 2cc2849 reconciled to PR #280. Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb Co-authored-by: Shevchik Igor <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs upstream nuxt/ui commit
2cc2849— perf(module): declaresideEffectsfor barrel tree-shaking (#6729).What
Adds a
sideEffectsfield topackage.jsonso consumer bundlers can tree-shake unused JS exports from the barrel while preserving CSS imports as side-effectful — a build-time perf win for downstream apps.b24ui port
package.json— added"sideEffects": ["**/*.css"]after"main"(b24ui had no such field). The**/*.cssglob covers b24ui's stylesheet outputs (dist/runtime/index.css,.nuxt/b24ui.static.css), exactly matching upstream intent.pnpm-lock.yamluntouched.Verify (
CI=true)dev:prepare·lint·typecheck·test·build— all green. Suite 5485 passed / 6 skipped (unchanged; manifest metadata only).Ledger: cursor advanced to
2cc2849; previous entryf951529reconciled to PR #279.🤖 Generated with Claude Code
Generated by Claude Code