From 7deb9fa9ca509a5579518b98bec98c54a054a180 Mon Sep 17 00:00:00 2001 From: Geoff Seemueller Date: Sun, 1 Dec 2024 14:11:54 -0500 Subject: [PATCH] bump patch: Add module splitting to build script. Enabled the --splitting option in the build script to support code splitting, which the cli/library can both reference instead of bundling the entire bundle for each, so this effectively cuts the bundle size in half. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1731a59..834ab34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-tokenizer-md", - "version": "1.2.4", + "version": "1.2.5", "type": "module", "license": "AGPL-3.0-or-later", "repository": "https://github.com/geoffsee/code-tokenizer-md.git", @@ -21,7 +21,7 @@ "dist" ], "scripts": { - "build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --outdir dist --target node && bun ./build.ts", + "build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --splitting --outdir dist --target node && bun ./build.ts", "test": "bun test", "prepublishOnly": "bun run build", "dev": "bun run .",