-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Support CSS and css-modules in bundle: false
#182
Comments
Some additional information:
|
Yes, I hope to reuse the CSS Modules capability of But at present, e.g:
./dist
└── esm
├── CounterButton.d.mts
├── CounterButton.mjs
├── CounterButtonStyle.module.mjs
└── static/css
- └── CounterButtonStyle.module.css
+ └── CounterButtonStyle_module.css
// CounterButtonStyle.module.mjs
+ import '../static/css/CounterButtonStyle_module.css'
// extracted by css-extract-rspack-plugin
/* harmony default export */ const index_module = {
textRed: "textRed-IhMFNY"
};
export { index_module as default }; there are two ways 1. write a new and simple just emit assets with
2. do some changes to current
in the web app and bundle mode, the empty chunk can be deleted by treeshaking and minifier, 😂our case is quite special. |
bundle: false
bundle: false
Is this code snippet for bundleless mode? |
Version
Details
#140
import "./reset.css";
directly import css will generate a empty chunkreset.mjs
bycss-extract-rspack-plugin
import styles from './index.module.css';
expected behavior
// CounterButtonStyle.module.mjs + import '../static/css/CounterButtonStyle_module.css' // extracted by css-extract-rspack-plugin /* harmony default export */ const index_module = { textRed: "textRed-IhMFNY" }; export { index_module as default };
Reproduce link
in the draft pr
Reproduce Steps
in the draft pr
examples/react-component-bundle-false
The text was updated successfully, but these errors were encountered: