Skip to content

fix(vscode-extension): stop Export to React emitting an unused React import - #7978

Merged
os-sam merged 2 commits into
mainfrom
claude/issue-7862-vscode-export-react-unused-import
Sep 6, 2026
Merged

fix(vscode-extension): stop Export to React emitting an unused React import#7978
os-sam merged 2 commits into
mainfrom
claude/issue-7862-vscode-export-react-unused-import

Conversation

@claude

@claude claude Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #7862

generateReactComponent() — the body of the Export to React command — opened every
file it generated with import React from 'react', while the only JSX in that file is a
single SchemaRenderer element. Under the automatic JSX runtime the identifier is never
read, so a consumer with noUnusedLocals: true could not compile the file the command
had just handed them.

Clause-②: no. This changes the scaffolding text one command emits: it moves no
schema's accept/reject behaviour, widens no published package's public surface, and
moves no gate's scan population.

The card's reading, reproduced on this branch

Extracted the template's product from the source on disk, then compiled it against the
built dist/index.d.ts of @object-ui/react and @object-ui/components, TypeScript
6.0.3. Exit codes captured by redirecting first, never through a pipe:

config exit output
"jsx": "react-jsx", strict 0 empty
the same plus noUnusedLocals: true 2 Generated.final.tsx(1,1): error TS6133: 'React' is declared but its value is never read.

tsc --listFiles confirms the program was not vacuous: it holds the generated file, both
packages/{react,components}/dist/index.d.ts, and @types/react/jsx-runtime.d.ts — so
the automatic runtime's types are the real ones, not a stub.

Two configs were added to price the correction rather than assume it, same tree, same tsc:

config exit output
classic "jsx": "react" + noUnusedLocals, import present 0 empty
classic "jsx": "react", import removed 2 error TS2686: 'React' refers to a UMD global, but the current file is a module.

So the trade is exact: one transform's error for the other's. What decides it is below.

What this extension actually promises about the transform

Measured before choosing, because "react-jsx is the modern default" is a recollection,
not a reading. Every search below was run with the exit code captured after a redirect.

  • Does the command emit a tsconfig, or anything declaring jsx? No. exportToReact()
    calls vscode.workspace.openTextDocument with the generated content and
    language: 'typescriptreact' — one untitled, in-memory document. The package's only
    vscode.workspace.fs.writeFile is in createNewSchema(), and it writes a
    .objectui.json schema.
  • What does the extension's own tsconfig.json / bundler config set jsx to? Neither
    sets it. tsconfig.json declares "lib": ["ES2020"] and "types": ["node", "vscode"]
    with no jsx key; tsup.config.ts has none either. Case-insensitive jsx across the
    whole package — sources, manifest, tsconfigs, snippets, schemas, README, DESIGN,
    CHANGELOG — returns zero lines (exit 1).
  • Does any README, command description or other template promise the classic
    transform?
    No. Searched packages/vscode-extension/README.md, DESIGN.md,
    CHANGELOG.md, content/docs/utilities/vscode-extension.mdx and
    content/docs/utilities/index.md for jsx, createElement, classic, transform,
    react-jsx, React 16, React 17, automatic runtime and tsconfig: one hit
    total
    , DESIGN.md:185 tsconfig.json, a build-config heading listing target, module,
    strict mode and source maps. The other generators in the package emit webview HTML and
    JSON schemas — no TypeScript.
  • Repo-wide: "jsx": "react" occurs zero times; all 52 "jsx": lines in
    tracked tsconfigs read react-jsx.
  • Who can even be a consumer? @object-ui/react and @object-ui/components both peer
    on react: ^18.0.0 || ^19.0.0, so the automatic runtime is available to every version
    this scaffolding is allowed to target.

And the published docs page already documents the corrected output. The Output Example
under ObjectUI: Export to React in content/docs/utilities/vscode-extension.mdx opens
with import { SchemaRenderer } from '@object-ui/react' and carries no React import. The
command was drifting from its own documentation; this brings it back.

Nothing found promises or emits the classic transform, so removing the line breaks no
promise the extension has made. The preamble now says which runtime it assumes, so the
one configuration this costs gets told what to do about it instead of just failing.

The pin reads the product, not a substring of the generator

src/__tests__/export-to-react-compiles.test.ts extracts the template literal's body,
interpolates a schema, and compiles the result under "jsx": "react-jsx", strict,
noUnusedLocals and noUnusedParameters, asserting zero diagnostics.

This is deliberately not a second source-text pin. The objectui#7837 pin asserts that
named strings are present or absent; it was green for the entire life of
import React from 'react', a line it never mentions, and it would be green for the next
preamble line too. Compiling the product closes the class instead of one member of it.

Three things make it hard to fool:

  • The positive control runs on every invocation. One test re-adds the import to the
    extracted product and requires exactly one TS6133. If the stubs, options or host ever
    stop reaching the compiler, that test goes red rather than the main assertion going
    quietly, permanently green.
  • The module declarations are hermetic, on a measured reason. .github/workflows/ci.yml
    runs the test job as pnpm install --frozen-lockfile then pnpm test, with no build
    step
    , so both sibling dist/ trees are absent there. Resolving to them would make this
    file emit a TS2307 storm in CI — a red test reporting a missing build rather than a
    defect. The property under test is a property of the emitted text, and any declaration
    for those specifiers decides it. Import shape against the real packages stays the
    objectui#7837 pin's job.
  • The extractor refuses rather than guesses. Every failure mode throws with "this pin
    needs rewriting, not deleting", and it rejects a template containing a backslash escape
    or an unexpected interpolation, since either means the sliced source and the emitted text
    have diverged.

A third test records what the correction costs the classic transform. It asserts the
substance — one diagnostic, about React — not a code, because the code depends on what
declares react: TS2686 against the real @types/react and its UMD global, TS2874
against the hermetic stubs. Pinning either would pin the stub, not the fact.

DESIGN.md carries a hand-copy of the same preamble, corrected here

packages/vscode-extension/DESIGN.md section 4 keeps a second, hand-maintained copy of
the text this command emits, and it named the removed line too. The file surface was
widened by exactly this one file to take it, on the precedent for the same file and the
same defect class: the objectui#7837 changeset states that the mirror is corrected in the
same commit so the design record does not freeze the defect. Leaving it would have
manufactured, knowingly, the state that ruling exists to prevent.

The correction is taken from the template verbatim — the commit reads the emitted
preamble out of generateReactComponent() and writes those bytes into the fence, rather
than retyping them — and it touches nothing else in the file: git diff for that commit
is one hunk, four lines added and one removed, entirely inside that fenced block.

What still binds the two copies together is nothing, and that is the durable half of
the problem: no gate reaches this file. Measured rather than assumed — the scan surfaces
of check-doc-snippet-types.mjs and check-doc-fence-languages.mjs are content/docs,
the per-app apps/*/docs trees, packages/NAME/README.md and the root README.md, so a
package's DESIGN.md is in neither population. check:doc-fences ran here and judged 227
documents; DESIGN appears in zero of them. objectui#7976 stays open for that class
question — should the pin bind the fence to the template's product — with the instance
corrected here.

Verification, all at a4d7f6433 (the final commit) unless noted

  • pnpm exec vitest run packages/vscode-extension/ from the repository root —
    RUN v4.1.10 /home/user/objectui-issue-7862, Test Files 2 passed, Tests 6 passed.
    Run from the root deliberately: a package-directory cwd silently runs apps/console
    instead (objectui#3378). Re-run after the final commit, together with type-check and
    lint, on a freshly built dependency closure (pnpm --filter 'object-ui^...' build).
  • Positive control on the committed implementation. Re-added the import to the real
    template — landed-on-disk confirmed by anchored counts (injected text 1, displaced text
    0) and a blob change 3f85710d1 to f3980085c. The pin went red and named itself:
    Generated.tsx(1,1): error TS6133: 'React' is declared but its value is never read. All
    three tests went red, in the predicted directions. Restored with
    git checkout HEAD -- (absolute path) and proven by state, not by exit code:
    git diff HEAD zero bytes, working blob back to 3f85710d1 — identical to
    HEAD:packages/vscode-extension/src/extension.tsgit status --porcelain empty. The
    suite is green again on the restored tree.
  • pnpm --filter object-ui type-check — exit 0, script name echoed
    (tsc --noEmit && tsc -p tsconfig.test.json), zero error TS. Proven non-vacuous with
    --listFiles: the build program holds 180 files including src/extension.ts and
    excluding the new test, so it cannot ship inside the .vsix; the test program holds
    227 files including both test files.
  • pnpm --filter object-ui lint — exit 0. eslint . --format json in the package: 8
    files linted, 0 errors, 13 warnings
    , all pre-existing in extension.ts and
    providers/; both test files score 0 and 0. node scripts/check-lint-coverage.mjs
    46/46 packages linted, 0 outstanding errors. The repo-wide pnpm lint was narrowed to
    this package, and the narrowing is a measurement rather than a skip: the population came
    from eslint's own config resolution, the count from --format json, and the root
    eslint.config.js declares no projectService, project or tsconfigRootDir, so
    type-aware linting is off and this diff cannot move any untouched file's verdict.
  • Changeset, quoting the checker rather than reasoning about it:
    node scripts/check-changeset-presence.mjs first said
    1 source file(s) of 1 released package(s) changed, and this change adds no changeset,
    naming object-ui. After adding .changeset/7862-vscode-export-react-unused-import.md
    as a patch, it reads
    1 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s). Re-run from scratch once DESIGN.md joined the diff, not carried
    over
    : 4 file(s) changed, 2 of them published source of a package the release covers and 2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s) — exit 0, the one changeset covers both files, and its text
    now names the DESIGN.md correction the way the objectui#7837 changeset named its
    own. check-changeset-no-major.mjs and check-changeset-fixed.mjs both green on the
    final tree.
  • Gates re-derived for the changed paths and re-run on the final commit, each exit code
    captured after a redirect, all 0: check:control-bytes (6419 files scanned),
    check:phantom-deps, check:self-import, check:unreferenced-sources,
    check:doc-example-readers, check:vi-mock-specifiers, check:vi-mock-inherit,
    check:shell-escape-residue, check:side-effects-array,
    check:published-tsconfig-exclude, scripts/check-type-check-coverage.mjs,
    scripts/check-lint-coverage.mjs. Adding a package .md pulled in the documentation
    family, so it was re-derived rather than reused: check:doc-fences 0 (227
    documents), check:doc-types 0, scripts/check-doc-links.mjs 0.
    git diff HEAD is zero bytes at a4d7f6433.
  • Two readings were discarded rather than reported. check:doc-snippets exited 2
    printing PRECONDITION NOT MET (exit 2) — The snippet program was NOT run, which the
    gate itself distinguishes from exit 1: it needs 26 packages built. It is also not in
    this diff's family — its scan surface excludes a package's DESIGN.md, as above. And a
    guessed scripts/check-links.mjs threw MODULE_NOT_FOUND; the real gate is
    scripts/check-doc-links.mjs (run, 0), while check-links.yml is a lychee action
    rather than a local script.
  • check:readme-exports is reported as not measured locally, not as green. It printed
    the population COLLAPSED -- this run proves nothing, because it reads export sets from
    built dist/index.d.ts and its workflow builds every package first. This change edits no
    README and moves no export, so its population is untouched; CI runs it with the build.

Two findings filed

  • objectui#7976 — filed for packages/vscode-extension/DESIGN.md hand-mirroring this
    preamble with nothing binding the copy to the original. The instance it was filed for
    is corrected in this PR
    ; the card stays open, and is being re-scoped to the class
    question it exposes — whether the pin should assert that the fenced block EQUALS the
    template's product. That is deliberately not done here: binding a documentation file
    into the generator's pin adds a scan surface, and it is a real design decision rather
    than a mechanical edit. No closing keyword names it above, on purpose.
  • objectui#7977 — content/docs/utilities/vscode-extension.mdx says the output is copied
    to the clipboard, which the command never does (clipboard occurs nowhere in src/),
    and its example omits the import '@object-ui/components' side-effect import that
    objectui#7837 established as load-bearing. Untouched here.

Authored by Claude Code in session 01KbJQ1y1J12nZxYzFWhP8Q3 (https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3), which is recorded in both commit trailers as well. The footer below is the bare form this platform writes on an edited body; the session-URL form survives creation only, so it is stated here instead of re-posted.


Generated by Claude Code

…import

`generateReactComponent()` opened every generated file with
`import React from 'react'` while the file's only JSX is one SchemaRenderer
element. Under the automatic runtime (`"jsx": "react-jsx"`) the identifier is
never read, so a consumer with `noUnusedLocals: true` could not compile the
file the command had just handed them (objectui#7862).

Measured on this branch against the built `dist/index.d.ts` of
`@object-ui/react` and `@object-ui/components`, TypeScript 6.0.3: the emitted
file was clean under `react-jsx` + `strict` (exit 0) and failed with
`TS6133: 'React' is declared but its value is never read` once
`noUnusedLocals: true` was added.

Nothing in the extension emits or promises a `jsx` setting: the string does
not occur anywhere in the package, the command emits only the untitled `.tsx`
document, and the published docs page for the command already showed the
output without the import.

Adds `src/__tests__/export-to-react-compiles.test.ts`, which extracts the
template's PRODUCT and compiles it under `noUnusedLocals` instead of matching
substrings in the generator. Its positive control runs on every invocation, so
the harness cannot go quietly, permanently green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
@github-actions github-actions Bot added the tests label Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3189.6 KB 3191.4 KB
Main entry chunk (gzip) 143.5 KB 350 KB
Entry file index-DQx3qbfu.js
Status PASS

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 510.60KB 116.20KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.37KB
plugin-dashboard (index.js) 132.88KB 34.69KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.56KB 27.70KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.40KB 8.76KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

… React preamble

DESIGN.md section 4 keeps a hand-maintained second copy of the text
`generateReactComponent()` emits, and the previous commit removed
`import React from 'react'` from the original. The copy is updated from the
template verbatim, so the design record does not name a line the command no
longer emits — the spelling objectui#7837 landed for this same file and the
same defect class.

Nothing binds the two copies together; that question is objectui#7976, which
stays open for it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3185.9 KB 3191.4 KB
Main entry chunk (gzip) 143.5 KB 350 KB
Entry file index-8xzvN5SF.js
Status PASS

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 497.06KB 113.79KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.16KB 3.68KB
plugin-calendar (index.js) 47.35KB 13.21KB
plugin-charts (index.js) 70.31KB 19.62KB
plugin-chatbot (index.js) 193.53KB 46.05KB
plugin-dashboard (index.js) 131.41KB 34.43KB
plugin-designer (index.js) 211.51KB 43.01KB
plugin-detail (index.js) 247.59KB 63.48KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 131.01KB 32.32KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.56KB 56.63KB
plugin-kanban (index.js) 52.30KB 14.49KB
plugin-list (index.js) 113.24KB 27.66KB
plugin-map (index.js) 20.35KB 6.77KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 29.95KB 8.67KB
plugin-tree (index.js) 9.16KB 3.18KB
plugin-view (index.js) 84.33KB 20.75KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vscode-extension: Export to React emits an unused import React, so its output fails TS6133 under noUnusedLocals

2 participants