Skip to content

A Deno custom loader for supporting importing other files those are not import-able, for the sake of types.

Notifications You must be signed in to change notification settings

symful/customloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Deno custom loader for supporting importing other files those are not import-able, for the sake of types.

Resources

Stars

Watchers

Forks

Packages

No packages published