create-react-library
create-react-library copied to clipboard
comments stripped from output with --no-compress
Basically reposting this issue: https://github.com/developit/microbundle/issues/647
I'm a newbie to bundling and library creation so take what I say with a grain of salt.
I was looking at package.json and see that you're using microbundle-crl instead of microbundle which is apparently a fork with improved features and defaults for react. However, there was an issue with microbundle where --no-compress would remove comments from the output which was fixed in https://github.com/developit/microbundle/pull/648. Unfortunately, this issue still exists in microbundle-crl and by replacing mircobundle-crl with microbundle in package.json I was able to keep the comments in my code.
I read your comment (https://github.com/transitive-bullshit/create-react-library/issues/238#issuecomment-626371405) and agree with what you said and am thinking that maybe that this might be an accidentally oversight. I'm not exactly sure about the specific improvements of microbundle-crl over the original so I'd rather use microbundle-crl - however, the no comments thing is kind of a deal breaker.
Thanks, and would appreciate any clarification or workaround.
I literally just saw this 🤦:
