-
-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Copy link
Description
Version
System:
OS: macOS 15.1.1
CPU: (10) arm64 Apple M1 Max
Memory: 193.63 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 143.0.7499.194
Firefox: 145.0.2
Safari: 18.1.1
npmPackages:
@rslib/core: ^0.19.3 => 0.19.3Details
When in bundled mode, rslib generates a index.js file, as well as a index.css file that contains all the CSS styles of the package. However, this index.css file is not imported in the index.js file, meaning that the styles are not displayed when the component is used.
My expectation is that the bundled output should have an import of the styles.
Reproduce link
https://github.com/davidferguson/rslib-bundle-no-styles-demo
Reproduce Steps
-
Install the dependencies:
npm install
-
Run build:
npm run build
-
Inspect the
dist/index.jsfile.Observe that there is no import of the
dist/index.cssfile there. There is the import in thedist/Button.d.tshowever this is the typing file, not the js code file, so this will not work when used outside a typescript environment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels