esbuild-wasm-bundler/jsapi.tsx
2024-08-13 10:25:16 -04:00

13 lines
319 B
TypeScript

import Bundle from "./mod.ts";
import Config from "./test/deno.json" with {type:"json"};
const path = await import.meta.resolve("./test/");
const {outputFiles} = await Bundle(path, {entryPoints:["./app.tsx"]}, Config);
if(outputFiles)
{
for(const item of outputFiles)
{
console.log(item.text);
}
}