We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e4cb8 commit 26c2635Copy full SHA for 26c2635
rollup/plugins/npmPlugins.js
@@ -140,8 +140,8 @@ export function makeRemoveMultiLineCommentsPlugin() {
140
return regexReplace({
141
patterns: [
142
{
143
- // The `s` flag makes the dot match newlines
144
- test: /^\/\*.*\*\//gs,
+ // If we ever want to remove all comments instead of just /* ... */ ones, the regex is /\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm
+ test: /\/\*[\s\S]*?\*\//gm,
145
replace: '',
146
},
147
],
0 commit comments