-
-
Notifications
You must be signed in to change notification settings - Fork 957
Milestone
Description
UnoCSS version
66.5.11
Describe the bug
The types for all packages are currently not bundled properly. Each package contains types from common packages as well and does not use imports in type definitions.
For example @unocss/preset-mini contains all types from @unocss/core, see https://www.npmjs.com/package/@unocss/preset-mini?activeTab=code .
This is probably bug in tsdown as listing the dependencies explicitly in tsdown.config.ts fixes the problem:
export default defineConfig({
// ...
external: ['@unocss/core', '@unocss/extractor-arbitrary-variants', '@unocss/rule-utils'],
})Reproduction
Run build in any unocss package and see type files.
System Info
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels