-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
What is the problem this feature would solve?
Why plugins from Bun.build
api not used in bun build --compile
? I think it would be useful and convenient.
What is the feature you are proposing to solve the problem?
For example, we can add binary
format or compile
property in Bun.build
or add new Bun.compile
API with esbuild/Bun compability plugins
Bun.build({
entrypoints: ["example/index.ts"],
outdir: "out",
format: "binary",
// or
compile: true,
plugins: [
autoload({
pattern: "**/*.{ts,tsx,js,jsx,mjs,cjs}",
directory: "./example/routes",
}),
],
});
What alternatives have you considered?
Compile already bundled code (An inconvenient unnecessary step)
await Bun.build({
entrypoints: ["index.ts"],
outdir: "out",
plugins: [
autoload({
directory: "./routes",
}),
],
}).then(console.log);
await Bun.$`bun build --compile out/index.js`;
ThatOneCalculator, kravetsone, vastamaki, chrisbenincasa, mtt-artis and 6 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request