Skip to content

Commit 4bc8985

Browse files
committed
run esbuild in bundle mode
1 parent 0fe884f commit 4bc8985

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/fifty-bags-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/contentlayer": patch
3+
---
4+
5+
run esbuild in bundle mode

packages/core/src/Cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const command = Command.make("contentlayer", { configPath, watchMode }).pipe(
4444
),
4545
Layer.mergeAll(
4646
BuildOptions.Live({
47-
bundle: false,
47+
bundle: true,
48+
external: ["@effect/contentlayer", "effect"],
4849
entryNames: "[name]-[hash]",
4950
entryPoints: [configPath],
5051
format: "cjs",
@@ -60,6 +61,6 @@ const command = Command.make("contentlayer", { configPath, watchMode }).pipe(
6061
)
6162

6263
export const run = Command.run(command, {
63-
name: "Contenlayer CLI",
64+
name: "Contentlayer CLI",
6465
version: "0.0.0"
6566
})

0 commit comments

Comments
 (0)