You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a simple library with multiple entries.
I have seen this: web-infra-dev/rsbuild#3702
But it still does not answer my question.
I want to import my components like this:
import{Button}from'@acme/ui/Inputs';
However, this doesn't work. I've managed to get it working using Vite and Rollup, but I want to migrate to rslib instead.
I'm likely making a mistake, but I can't find any documentation on how to resolve it.
I know the import is the same path because there is only one js file, I don't know why.
I've created a working example, which you can find here: https://codesandbox.io/p/devbox/sx9t7q
Ultimately, I want to be able to import components in this way:
Version
Details
I'm creating a simple library with multiple entries.
I have seen this: web-infra-dev/rsbuild#3702
But it still does not answer my question.
I want to import my components like this:
However, this doesn't work. I've managed to get it working using Vite and Rollup, but I want to migrate to rslib instead.
I'm likely making a mistake, but I can't find any documentation on how to resolve it.
My entries are set up as follows:
I'm also receiving this warning:
I know the import is the same path because there is only one js file, I don't know why.
I've created a working example, which you can find here:
https://codesandbox.io/p/devbox/sx9t7q
Ultimately, I want to be able to import components in this way:
Reproduce link
https://codesandbox.io/p/devbox/sx9t7q
Reproduce Steps
pnpm i
to install all dependenciespnpm build
to build all packagesalternatively, run
pnpm build --filter=@acme/ui
to build only the ui package.The text was updated successfully, but these errors were encountered: