mirror of
https://github.com/CompeyDev/bun-lune-loader.git
synced 2024-12-12 12:50:39 +00:00
13 lines
No EOL
301 B
TypeScript
13 lines
No EOL
301 B
TypeScript
import plugin from "./src/index";
|
|
|
|
const out = await Bun.build({
|
|
plugins: [plugin],
|
|
entrypoints: ["./examples/run.ts"],
|
|
});
|
|
|
|
if (out.success) {
|
|
eval(await out.outputs[0].text())
|
|
} else {
|
|
console.warn("Build failed:")
|
|
console.warn(out.logs.map((v) => " " + v.message).join("\n"))
|
|
} |