Skip to content

Commit 233e5ea

Browse files
authored
CodeSandboxが動かない問題を修正 (#858)
1 parent fb24ae7 commit 233e5ea

File tree

11 files changed

+860
-3
lines changed

11 files changed

+860
-3
lines changed

docs/3-web-servers/04-module/index.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ import add from "./sub.mjs";
3434
console.log(add(3, 4));
3535
```
3636

37-
<ViewSource url={import.meta.url} path="_samples/default-export" />
37+
<ViewSource
38+
url={import.meta.url}
39+
path="_samples/default-export"
40+
noCodeSandbox
41+
/>
3842

3943
:::tip[名前付きエクスポート]
4044

@@ -56,7 +60,7 @@ console.log(add(3, 4));
5660
console.log(subtract(4, 3));
5761
```
5862

59-
<ViewSource url={import.meta.url} path="_samples/named-export" />
63+
<ViewSource url={import.meta.url} path="_samples/named-export" noCodeSandbox />
6064

6165
:::
6266

@@ -82,7 +86,11 @@ const add = sub.add;
8286
console.log(add(3, 4));
8387
```
8488

85-
<ViewSource url={import.meta.url} path="_samples/commonjs-module" />
89+
<ViewSource
90+
url={import.meta.url}
91+
path="_samples/commonjs-module"
92+
noCodeSandbox
93+
/>
8694

8795
:::
8896

docs/3-web-servers/05-server/_samples/app-use/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "express-server",
3+
"scripts": {
4+
"start": "node main.mjs"
5+
},
36
"dependencies": {
47
"express": "^5.1.0"
58
}

0 commit comments

Comments
 (0)