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 e189fcb commit 9f4a2b1Copy full SHA for 9f4a2b1
rollup/plugins/npmPlugins.js
@@ -127,6 +127,23 @@ export function makeRemoveBlankLinesPlugin() {
127
});
128
}
129
130
+/**
131
+ * Create a plugin to strip multi-line comments from the output.
132
+ *
133
+ * @returns A `rollup-plugin-re` instance.
134
+ */
135
+export function makeRemoveMultiLineCommentsPlugin() {
136
+ return regexReplace({
137
+ patterns: [
138
+ {
139
+ // The `s` flag makes the dot match newlines
140
+ test: /^\/\*.*\*\//gs,
141
+ replace: '',
142
+ },
143
+ ],
144
+ });
145
+}
146
+
147
/**
148
* Creates a plugin to replace all instances of "__DEBUG_BUILD__" with a safe statement that
149
* a) evaluates to `true`
0 commit comments