@deno/emit's transpile with JSR
Do I miss something or @deno/emit don't work with JSR? I am trying to do JSX DOM Client Component, hono/jsx/dom, not just hono/jsx which is SSR.
I'm also surprise this emit package is not in @std but in a strange @deno, its legit?
I need this deno compilerOptions for my hono/jsx SSR config
I'm also surprise this emit package is not in @std but in a strange @deno, its legit?
server.tsx
import { transpile } from "@deno/emit";
const url = new URL("./client.tsx", import.meta.url);
const result = await transpile(url);import { transpile } from "@deno/emit";
const url = new URL("./client.tsx", import.meta.url);
const result = await transpile(url);client.tsx
import { render, useState } from "@hono/hono/jsx/dom";import { render, useState } from "@hono/hono/jsx/dom";Termial output
Error: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../
at __wbg_new_28c511d9baebfa89 (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:557:19)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:3275940)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:247440)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:1817650)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:2917318)
at __wbg_adapter_46 (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:247:6)
at real (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:231:14)
at ext:core/01_core.js:308:9
at eventLoopTick (ext:core/01_core.js:174:7)Error: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../: Relative import path "@hono/hono/jsx/dom" not prefixed with / or ./ or ../
at __wbg_new_28c511d9baebfa89 (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:557:19)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:3275940)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:247440)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:1817650)
at <anonymous> (file:///home/eric/.local/share/deno-wasmbuild/04dbfb768c553d942c8cf19ddaf40bd5fcbdf1051aa008efa8f1839820145853.wasm:1:2917318)
at __wbg_adapter_46 (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:247:6)
at real (https://jsr.io/@deno/emit/0.44.0/emit.generated.js:231:14)
at ext:core/01_core.js:308:9
at eventLoopTick (ext:core/01_core.js:174:7)deno.json
{
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "@hono/hono/jsx"
},
"imports": {
"@deno/emit": "jsr:@deno/emit@^0.44.0",
"@hono/hono": "jsr:@hono/hono@^4.5.6"
},
}{
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "@hono/hono/jsx"
},
"imports": {
"@deno/emit": "jsr:@deno/emit@^0.44.0",
"@hono/hono": "jsr:@hono/hono@^4.5.6"
},
}I need this deno compilerOptions for my hono/jsx SSR config
