esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Commented code is being exposed in final code exposed by esm.sh

Open brandonmcconnell opened this issue 1 month ago • 1 comments

While troubleshooting a project I'm working on, I commented out some of the code and did a new prerelease of my package @toolwind/[email protected], but I still see the same behavior.

Upon further investigation, I see the commented code is still present in the esm.sh, even though it should be omitted/commented. Example: {modifiers:"any"}

https://esm.sh/@toolwind/[email protected]/es2022/corner-shape.mjs

Image

https://github.com/toolwind/corner-shape/blob/864d425c272d6ad08633ac10182af8470cdac51d/index.ts#L45-L70

Image

https://play.tailwindcss.com/KDkdxXv5aD?file=css

Image

brandonmcconnell avatar Nov 20 '25 03:11 brandonmcconnell

Image Image

seems you didn't publish the changes to npm

ije avatar Nov 20 '25 05:11 ije