-
Hello, I have been playing around using RsLib to build a React components library, where I am outputting both CJS and ESM artifacts. However I've noticed that the ESM output only contains If you take a look at the attached screenshot above, you can see that the CJS output has included index.js and index.d.ts as expected, however ESM has only put out Please can you confirm if this is correct? My gut feeling was that I would see a FYI, the code I am using for the rslib.config.json file is based on the examples in this repository, however I had to set the source.entry config options for it to work, otherwise rslib fails saying it cannot find the entry file; I wanted to have multiple entry points anyway, so this isn't an issue; but is there it differs from the example in this repo. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, thanks for try Rslib before it reaching a stable version. I think this might be a bug in Rslib, but we need more information to help debug, and tracking this issue through an issue rather than a discussion would be better, could you go ahead and open an issue through https://github.com/web-infra-dev/rslib/issues/new/choose, we'll follow up. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I have raised the bug here: #162 I've pushed up a temp GitHub repository to help with the replication of the issue(s). |
Beta Was this translation helpful? Give feedback.
Hi, thanks for try Rslib before it reaching a stable version. I think this might be a bug in Rslib, but we need more information to help debug, and tracking this issue through an issue rather than a discussion would be better, could you go ahead and open an issue through https://github.com/web-infra-dev/rslib/issues/new/choose, we'll follow up. Thanks.