esbuild-wasm-bundler/bundler-inc.tsx

16 lines
333 B
TypeScript
Raw Normal View History

2024-06-07 16:54:12 -04:00
import B from "./mod.ts";
const results = await B({
imports: {
"react": "https://esm.sh/preact@10.22.0/compat",
"react/": "https://esm.sh/preact@10.22.0/compat/",
"other": "./other.tsx",
"entry": "./app.tsx"
}
});
for await(const file of results.outputFiles)
{
console.log(file.path);
}