-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Server.ts :
import { serveDirWithTs } from "jsr:@ayame113/ts-serve";
Deno.serve((request) => serveDirWithTs(request));index.html :
<html>
<head>
<script src="Test.ts"></script>
</head>
<body></body>
</html>Test.ts :
import {test} from "./Test2.ts"
console.log(test);Test2.ts :
export let test=1;Result:
Seems typescript imports dont work under Deno with ts-serve.
Seems something is wrapping the Test.ts file and so the import isnt top-level anymore,
but this is not apparent when clicking the error message as it shows the unmodified (correct) code.
Is this an issue with Deno.emit or ts-serve ?
ayame113
Metadata
Metadata
Assignees
Labels
No labels

