From bcb44712453413880fca8410f5ef7f2942bda2d6 Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Tue, 14 Mar 2023 20:33:56 +0100 Subject: [PATCH] Add caveat of `--target no-modules` --- guide/src/examples/without-a-bundler.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/src/examples/without-a-bundler.md b/guide/src/examples/without-a-bundler.md index dd37802ca2c..fed2ad9445d 100644 --- a/guide/src/examples/without-a-bundler.md +++ b/guide/src/examples/without-a-bundler.md @@ -54,6 +54,8 @@ few caveats: * It does not support [local JS snippets][snippets] * It does not generate an ES module +* It does not support `--split-linked-modules` outside of a document, e.g. + inside a worker With that in mind the main difference is how the wasm/JS code is loaded, and here's an example of loading the output of `wasm-pack` for the same module as