Skip to content

Commit 70e60e1

Browse files
committed
chore(sandbox): fixed Demo name replacement
1 parent 1861731 commit 70e60e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev-utils/src/sandbox/createSandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function transformFileContents(
5757

5858
if (demoName) {
5959
transformed = transformed
60-
.replace(`default ${demoName};`, "default Demo;")
60+
.replace(`default function ${demoName}`, "default function Demo")
6161
.replace(new RegExp(`<${demoName}(\\s+)`, "g"), "<Demo$1");
6262
}
6363

0 commit comments

Comments
 (0)