aboutsummaryrefslogtreecommitdiff
path: root/docs/bundler/plugins.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-25 18:13:50 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-25 18:14:01 -0700
commit7b4bba787d4f8018e2225055f2c0793e5bdede76 (patch)
tree7f5a0e9a5a300a14cef19a4242aea0ca7889d38f /docs/bundler/plugins.md
parente95f9c6daa5be93942982e502f310cbe2877cce2 (diff)
downloadbun-7b4bba787d4f8018e2225055f2c0793e5bdede76.tar.gz
bun-7b4bba787d4f8018e2225055f2c0793e5bdede76.tar.zst
bun-7b4bba787d4f8018e2225055f2c0793e5bdede76.zip
prettier
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}`);
+ },
+ },
],
});
```