0.0.0 • Published 1 year ago
@katenpm2021/core v0.0.0
README
- Purpose: Build React component lib
- Expectation:
- import component directly, for example
import { Button } "@acme/core"
- import from component, for example
import { Button } from "@acme/core/button"
- import component directly, for example
Roadmap
Unresolved issues
issue 1:
- symptom: importing using this way
import { Button } from "@acme/core/button"
has typescript warning as `Cannot find module '@acme/core/button' or its corresponding type declarations.ts(2307) - impact: it doesn't matter as our code built by
tsup
supports tree shaking, so even if user imports thebutton
viaimport Button "@acme/core/button"
, the final file doesn't contain all other not used components - attempted solution: declare types file for each exports
- conclusion: ignore, and there is no need to declare exports for button, input, etc.
- symptom: importing using this way
use client
banner with compile target ases5
Knowledge Base
0.0.0
1 year ago