Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 712 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 712 Bytes

CustomLoader

A Deno custom loader for supporting importing other files those are not import-able, for the sake of types.
For parsing HTML, it uses Deno DOM
For parsing CSS, it uses NPM/CSS
For other files those are not supported by ESM, it will just make a TypeScript file that export Uint8Array.

Examples

You can check examples/http.ts. Basically it will make a HTTP server so Deno can cache the files and there will be TypeScript types. You can try by running

$ deno run -A examples/http.ts
$ deno run -A --reload examples/client.ts

Caution

It is not production ready yet.