Remove multiline comments with compress option#16
Conversation
|
Upstream PR vwochnik/rollup-plugin-glsl#7 |
|
Hi, the compress option should already remove multiline comments without the For example, the test case uses glsl-noise/simplex/3d by checking if Would you be able to provide the multiline comment that isn't being removed we could test against? |
|
By multiline comment I mean |
|
Ah, I see, let's add a test case for that. Is there a glslify module you're using that isn't compressing, or your own comment? |
|
It's custom GLSL code. |
|
Alright, also getting a linting error:
Investigating... |
|
It appears as though the I'll merge the PR and update the ESLint config. |
|
Published rollup-plugin-glslify@1.2.1. If you can confirm your multiline comments are being removed now. Thanks! |
|
Yes, it works, thanks! |
Currently multiline comments are not removed because
.doesn't match\n.sregex modifier is required for.to match\n.