DenoDDeno
Powered by
bennypB
Denoβ€’10mo agoβ€’
1 reply
bennyp

deno compile --include whatev.wasm

I'd like to include a wasm file as data, but when I try to
--include
--include
it I get

error: Relative import path "env" not prefixed with / or ./ or ../ and not in import map from "file:///var/home/bennyp/Developer/design-tokens-language-server/src/server/css/tree-sitter/tree-sitter-css.wasm"
error: Relative import path "env" not prefixed with / or ./ or ../ and not in import map from "file:///var/home/bennyp/Developer/design-tokens-language-server/src/server/css/tree-sitter/tree-sitter-css.wasm"


I'm aware that the docs say to add wasm imports to the import map, but that's not what I'm getting at: I just want to include a tree sitter grammar as data so that
web-tree-sitter
web-tree-sitter
can load it up.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno compile with --include
carragomCcarragom / help
5mo ago
deno compile --include argument
DNADDNA / help
3y ago
deno compile --include anything.wasm : relative import not prefixed error
ChillyDudasCChillyDudas / help
9mo ago
Include DLL files in deno compile
kingbriKkingbri / help
16mo ago