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.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "code-tokenizer-md",
|
"name": "code-tokenizer-md",
|
||||||
"version": "1.2.4",
|
"version": "1.2.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"repository": "https://github.com/geoffsee/code-tokenizer-md.git",
|
"repository": "https://github.com/geoffsee/code-tokenizer-md.git",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"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",
|
"test": "bun test",
|
||||||
"prepublishOnly": "bun run build",
|
"prepublishOnly": "bun run build",
|
||||||
"dev": "bun run .",
|
"dev": "bun run .",
|
||||||
|
Reference in New Issue
Block a user