esbuild-wasm-bundler/jsapi.tsx

13 lines
319 B
TypeScript
Raw Normal View History

2024-07-03 15:09:21 -04:00
import Bundle from "./mod.ts";
2024-06-14 17:07:50 -04:00
import Config from "./test/deno.json" with {type:"json"};
2024-06-12 17:05:41 -04:00
2024-08-13 10:25:16 -04:00
const path = await import.meta.resolve("./test/");
2024-06-14 17:07:50 -04:00
const {outputFiles} = await Bundle(path, {entryPoints:["./app.tsx"]}, Config);
2024-07-03 15:09:21 -04:00
if(outputFiles)
2024-06-14 17:07:50 -04:00
{
2024-07-03 15:09:21 -04:00
for(const item of outputFiles)
{
console.log(item.text);
}
2024-06-14 17:07:50 -04:00
}