aboutsummaryrefslogtreecommitdiff
path: root/docs/bundler/plugins.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/bundler/plugins.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/bundler/plugins.md b/docs/bundler/plugins.md
index 880de3028..37f8ce66e 100644
--- a/docs/bundler/plugins.md
+++ b/docs/bundler/plugins.md
@@ -274,19 +274,19 @@ Plugins can read and write to the [build config](/docs/cli/build#api) with `buil
Bun.build({
entrypoints: ["./app.ts"],
outdir: "./dist",
- sourcemap: 'external',
+ sourcemap: "external",
plugins: [
{
- name: 'demo',
+ name: "demo",
setup(build) {
console.log(build.config.sourcemap); // "external"
build.config.minify = true; // enable minification
// `plugins` is readonly
- console.log(`Number of plugins: ${build.config.plugins.length}`);
- }
- }
+ console.log(`Number of plugins: ${build.config.plugins.length}`);
+ },
+ },
],
});
```