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
Excluding v0.13.0 (due to the issue outlined in #776 & #777), Microbundle can end up using the JS format in the CSS file's name. For example, imagine I have the following keys in my package.json:
If I were to run Microbundle with microbundle build -f modern, then only index.modern.js will be in my output, but also causes index.modern.css to be generated. In most cases this likely wouldn't be an issue, as if I was targeting only modern I'd likely have it represented by index.js (remove the modern specifier altogether) but it is a side case that can emerge.
This is less than ideal as it's pointless in the case of Modern & UMD; confusing in the case of ESM as index.module.css does carry a different meaning.
Should be simple enough to edit the extract logic for rollup-plugin-postcss.
The text was updated successfully, but these errors were encountered:
Ran into this when in development. I have a watch script and unfortunately i have to pass --format cjs so i can get the generated names to be correct. Wanted to run --format modern instead as i don't need the cjs version when developing in a monorepo. Any suggestions?
Excluding v
0.13.0
(due to the issue outlined in #776 & #777), Microbundle can end up using the JS format in the CSS file's name. For example, imagine I have the following keys in mypackage.json
:If I were to run Microbundle with
microbundle build -f modern
, then onlyindex.modern.js
will be in my output, but also causesindex.modern.css
to be generated. In most cases this likely wouldn't be an issue, as if I was targeting only modern I'd likely have it represented byindex.js
(remove themodern
specifier altogether) but it is a side case that can emerge.This is less than ideal as it's pointless in the case of Modern & UMD; confusing in the case of ESM as
index.module.css
does carry a different meaning.Should be simple enough to edit the
extract
logic forrollup-plugin-postcss
.The text was updated successfully, but these errors were encountered: