Go to file
2025-02-28 17:10:47 -05:00
.vscode idk 2025-02-28 10:03:33 -05:00
browser_example shuffle things around 2025-02-28 17:09:55 -05:00
server shuffle things around 2025-02-28 17:09:55 -05:00
test_project shuffle things around 2025-02-28 17:09:55 -05:00
.gitignore init 2025-02-27 11:37:15 -05:00
deno.json init 2025-02-27 11:37:15 -05:00
mod.js shuffle things around 2025-02-28 17:09:55 -05:00
mod.test.tsx shuffle things around 2025-02-28 17:09:55 -05:00
README.md shuffle things around 2025-02-28 17:09:55 -05:00

ESBuild Typescript Bunder

Supports import maps and runs on Deno Deploy and the browser

Uses the WASM version of ESBuild for use on Deno Deploy and adds some plugins to allow for import maps. Unfortunately, npm:* and jsr:* specifiers are not supported currently.

Manual Bundle API

import Bundle from "./mod.js";

const {outputFiles} = await Bundle({
    fileSystem:import.meta.resolve('./test_project/'),
    esBuild:{entryPoints:["entry"]},
    importMap:{"imports": {
        "entry": "./app.tsx",
        "react": "https://esm.sh/preact@10.22.0/compat",
        "react/": "https://esm.sh/preact@10.22.0/compat/"
    }}
});


for(const item of outputFiles){
    // do something with the output...
    console.log(item.text.substring(0, 200));
}

(dev server is being reworked)