Skip to content
Discussion options

You must be logged in to vote

if you only generate 1 outdir for all your packages (import { css , cva, cx } from '@company/ds'), it should be generated using a config.include that includes all your sources, which is probably not what you want


if you have multiple packages each with different config include, you probably want to generate an outdir for each of them so that the lightweight JS runtime is not duplicated (css and cva function, patterns, recipes, jsx components..) and the css generated matches only the include for that package

by using emitPackage: true and re-using the same outdir name for each package, you are simulating (by tricking node resolution tbh) having only 1 import

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benoitdeziel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants