GeezerVison is showing github.com — PackageToJS: Fetch module from the default location if `init` is call… · swiftwasm/JavaScriptKit@ec9470c
File tree
Expand file treeCollapse file tree
Open diff view settings
Plugins/PackageToJS/Templates Sources/JavaScriptKit/Documentation.docc/Tutorials/Hello-World/Resources
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .gitignore +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,4 +9,4 @@ xcuserdata/ |
9 | 9 | .vscode |
10 | 10 | Examples/*/Bundle |
11 | 11 | Examples/*/package-lock.json |
12 | | -/Package.resolved |
| 12 | +Package.resolved |
Collapse file
Copy file name to clipboardExpand all lines: Examples/ActorOnWebWorker/index.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | <body> |
9 | 9 | <script type="module"> |
10 | 10 | import { init } from "./Bundle/index.js" |
11 | | - init(fetch(new URL("./Bundle/main.wasm", import.meta.url))); |
| 11 | + init(); |
12 | 12 | </script> |
13 | 13 | <h1>Full-text Search with Actor on Web Worker</h1> |
14 | 14 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Examples/Basic/.gitignore -5Lines changed: 0 additions & 5 deletions Collapse file
Copy file name to clipboardExpand all lines: Examples/Basic/index.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | <body> |
9 | 9 | <script type="module"> |
10 | 10 | import { init } from "./.build/plugins/PackageToJS/outputs/Package/index.js"; |
11 | | - await init(fetch("./.build/plugins/PackageToJS/outputs/Package/main.wasm")); |
| 11 | + init(); |
12 | 12 | </script> |
13 | 13 | </body> |
14 | 14 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Examples/Embedded/.gitignore -6Lines changed: 0 additions & 6 deletions Collapse file
Copy file name to clipboardExpand all lines: Examples/Embedded/index.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | <body> |
9 | 9 | <script type="module"> |
10 | 10 | import { init } from "./.build/plugins/PackageToJS/outputs/Package/index.js"; |
11 | | - await init(fetch("./.build/plugins/PackageToJS/outputs/Package/main.wasm")); |
| 11 | + init(); |
12 | 12 | </script> |
13 | 13 | </body> |
14 | 14 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Examples/Multithreading/.gitignore -8Lines changed: 0 additions & 8 deletions Collapse file
Copy file name to clipboardExpand all lines: Examples/Multithreading/index.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
29 | 29 | <body> |
30 | 30 | <script type="module"> |
31 | 31 | import { init } from "./Bundle/index.js" |
32 | | - init(fetch(new URL("./Bundle/main.wasm", import.meta.url))); |
| 32 | + init(); |
33 | 33 | </script> |
34 | 34 | <h1>Threading Example</h1> |
35 | 35 | <p> |
|
Collapse file
Copy file name to clipboardExpand all lines: Examples/OffscrenCanvas/.gitignore -8Lines changed: 0 additions & 8 deletions Collapse file
Copy file name to clipboardExpand all lines: Examples/OffscrenCanvas/index.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
70 | 70 | <body> |
71 | 71 | <script type="module"> |
72 | 72 | import { init } from "./Bundle/index.js" |
73 | | - init(fetch(new URL("./Bundle/main.wasm", import.meta.url))); |
| 73 | + init(); |
74 | 74 | </script> |
75 | 75 | <h1>OffscreenCanvas Example</h1> |
76 | 76 | <p> |
|