Skip to content

perf(module): declare sideEffects for barrel tree-shaking (2cc2849)#280

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-2cc2849
Jul 15, 2026
Merged

perf(module): declare sideEffects for barrel tree-shaking (2cc2849)#280
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-2cc2849

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Syncs upstream nuxt/ui commit 2cc2849perf(module): declare sideEffects for barrel tree-shaking (#6729).

What

Adds a sideEffects field to package.json so 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 **/*.css glob covers b24ui's stylesheet outputs (dist/runtime/index.css, .nuxt/b24ui.static.css), exactly matching upstream intent.
  • No dependency change → pnpm-lock.yaml untouched.

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 entry f951529 reconciled to PR #279.

🤖 Generated with Claude Code


Generated by Claude Code

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 IgorShevchik merged commit 6ab2a7c into main Jul 15, 2026
1 check passed
@IgorShevchik IgorShevchik deleted the sync/nuxt-2cc2849 branch July 15, 2026 07:20
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>
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