Skip to content

Commit 55d9593

Browse files
docs(examples): enhance note aboutt embedding versions
1 parent 713ee48 commit 55d9593

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/components/ts-resource-export/embedding.mts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ async function main() {
3030
// NOTE: While we can implement the shim once, we have to
3131
// merge different versions of it to create a complete import object
3232
// that the transpiled component can use.
33+
//
34+
// The lines below use the shim above *as* 0.2.7
35+
// inject the same shim as various versions of 0.2.x
36+
// which are required by the component and/or the build of
37+
// StarlingMonkey underneath
38+
//
39+
// To figure out which versions are required,
40+
// use `jco wit <component path>` and observe the versions of
41+
// various wasi dependencies that are in use via imports/exports
42+
//
3343
...shim.getImportObject<'0.2.7'>({ asVersion: '0.2.7' }),
3444
...shim.getImportObject<'0.2.3'>({ asVersion: '0.2.3' }),
3545
...shim.getImportObject(),

0 commit comments

Comments
 (0)