React Component Library - How? #3273
-
I love how simple it has been to use In Vite I would set the lib options to achieve this, but I cannot work out how to do this for lib: {
// Could also be a dictionary or array of multiple entry points.
entry: "src/lib/index.ts",
name: "design-system",
fileName: "index",
// Change this to the formats you want to support.
// Don't forget to update your package.json as well.
formats: ["es", "cjs"],
}, Any idea how to do this with RSBuild? Are there any examples anywhere? |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Aug 23, 2024
Replies: 1 comment 1 reply
Answer selected by
ShaneYu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #3020