Skip to content

fix: ensure @nuxt/ui componentDetection includes module components#33

Closed
lajczi wants to merge 1 commit into
Norbiros:masterfrom
lajczi:feat/nuxt-ui-tree-shaking
Closed

fix: ensure @nuxt/ui componentDetection includes module components#33
lajczi wants to merge 1 commit into
Norbiros:masterfrom
lajczi:feat/nuxt-ui-tree-shaking

Conversation

@lajczi

@lajczi lajczi commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

When @nuxt/ui's experimental.componentDetection is enabled, it only scans the app's source files for used components. Components used inside nuxt-auto-form (in node_modules) are invisible to the scanner, so their CSS themes were missing

Fixed by merging the required @nuxt/ui components (Button, Checkbox, Form, FormField, Input, InputNumber, Modal, Select) into the componentDetection list during module setup

Closes #25

@Norbiros

Copy link
Copy Markdown
Owner

This is not required. It works without any additional changes, cuz we are importing those componentes by hand

@Norbiros Norbiros closed this Mar 21, 2026
@lajczi lajczi deleted the feat/nuxt-ui-tree-shaking branch March 21, 2026 18:53
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.

[Enhancement]: Make sure this module works correctly with @nuxt/ui's tree shaking.

2 participants