diff --git a/src/compiler/preprocess/index.ts b/src/compiler/preprocess/index.ts
index 2faa3b97f2..4549517fbd 100644
--- a/src/compiler/preprocess/index.ts
+++ b/src/compiler/preprocess/index.ts
@@ -94,8 +94,12 @@ export default async function preprocess(
for (const fn of script) {
source = await replace_async(
source,
- /
+
+
+
+
+
+
+
+
+
+
diff --git a/test/preprocess/samples/comments/output.svelte b/test/preprocess/samples/comments/output.svelte
new file mode 100644
index 0000000000..2d3538af17
--- /dev/null
+++ b/test/preprocess/samples/comments/output.svelte
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+