We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.2.5+013fdddc6
Linux 6.11.10-300.fc41.x86_64 x86_64
To reproduce the bug you need to build at least two entrypoints, imported CSS Modules and enabled code splitting.
styles.module.css:
styles.module.css
.wrapper { display: block; }
index.ts, index2.ts (they may have the same content):
index.ts
index2.ts
import styles from './styles.module.css'; console.log(styles);
The build command:
bun build ./index.ts ./index2.ts --outdir ./out --splitting
Expected output is something like this:
// styles.module.css var styles_module_default = { wrapper: "wrapper_-MSaAA" }; // index.ts console.log(styles_module_default);
Both entrypoints are build as follows:
// index.ts console.log(styles_module_default);
The definition of styles_module_default is missing.
styles_module_default
If there is only one entrypoint or code splitting is disabled, everything works correctly.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.2.5+013fdddc6
What platform is your computer?
Linux 6.11.10-300.fc41.x86_64 x86_64
What steps can reproduce the bug?
To reproduce the bug you need to build at least two entrypoints, imported CSS Modules and enabled code splitting.
styles.module.css
:index.ts
,index2.ts
(they may have the same content):The build command:
What is the expected behavior?
Expected output is something like this:
What do you see instead?
Both entrypoints are build as follows:
The definition of
styles_module_default
is missing.Additional information
If there is only one entrypoint or code splitting is disabled, everything works correctly.
The text was updated successfully, but these errors were encountered: