Closed RunningCoderLee closed 4 years ago
Hi @RunningCoderLee, thank you for dedicating time to this issue!
Unfortunately, I could not reproduce your problem, could you please provide a reproduction repo using something like rollup's REPL, REPL.it, or just GitHub repo?
P.S. fiber
option is overwritten internally, I'll make it clearer in the next update, use fibers
option instead.
With my attempt to reproduce the issue i got:
build/es
├── Card.css
├── components
│ ├── Card
│ │ ├── Card.js
│ │ └── index.js
│ └── index.js
├── index.css
└── index.js
UPDATE 1: Still don't know why your Card.css
file in not there, but I see what you mean, I suppose Card.css
should be the same level as Card.js
Thank you for your reply.
Here is a demo repo and you can run npm run build
to reproduce this problem
https://github.com/RunningCoderLee/rollup-plugin-styles-demo
Hi again @RunningCoderLee!
I was able to reproduce the issue using the provided repo, and also was able to determine why was the file not present/overwritten (is it mainly due to Map usage here, replaced it with array locally and now everything is fine, will be a part of the next release).
As of Card.css
nesting, your PR is still applicable, but I have noted some changes there which should be taken care of before I merge it, or I can just close it and add them myself (with author's notice) if you want.
UPDATE 1: Figured out I can modify your branch directly, so I changed it myself. If any problems arise reopen this issue.
:tada: This issue has been resolved in version 3.8.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
In
preserveModules
mode, if there are files with the same name in different folders, the emitted style file will be overwritten。After bundle:
Expected: