aleph.js
aleph.js copied to clipboard
support import_maps in @deno-types
trafficstars
testing code:
// @deno-types="~/typings/fake.d.ts"
import Fake from "fake";
import maps:
{
"imports": {
"~/": "./",
"fake": "<some valid js file url>.js"
// skip
},
"scopes": {}
}
typings/fake.d.ts in root folder
export default const fake: number;
Result:
no error found in vscode and deno extenison
failed message output invalid prefix ~/
it seems swc won't transform the @deno-types in comments...
Idea:
purge all comments thats contains @deno-types, it is useless in js file
swc doesn't check the types, includes @deno-types.
where you got the error message? aleph dev?
swc doesn't check the types, includes
@deno-types. where you got the error message? aleph dev?
ssr mode, since deno check deno-type even in js file...
i see, will fix this, thanks