Skip to content

Commit

Permalink
perf: reduce package size and speed up execution
Browse files Browse the repository at this point in the history
Minfies the JIT transformers, allowing for unused compiler parts to be elided, reducing package size and speeding up execution
  • Loading branch information
devversion authored and ahnpnl committed Feb 9, 2024
1 parent bd8dd6c commit d7cbbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"testing"
],
"scripts": {
"build-transformers-bundle": "esbuild --bundle src/transformers/jit_transform.d.ts --platform=node --external:typescript --outfile=./src/transformers/jit_transform.js --format=cjs --define:import.meta.url=import_meta_url --inject:./src/transformers/esm_interop_inject.cjs && cp src/transformers/jit_transform.js build/transformers/jit_transform.js",
"build-transformers-bundle": "esbuild --bundle --minify src/transformers/jit_transform.d.ts --platform=node --external:typescript --outfile=./src/transformers/jit_transform.js --format=cjs --define:import.meta.url=import_meta_url --inject:./src/transformers/esm_interop_inject.cjs && cp src/transformers/jit_transform.js build/transformers/jit_transform.js",
"build": "tsc -p tsconfig.build.json && yarn build-transformers-bundle",
"lint": "eslint --ext .js,.ts .",
"lint-fix": "eslint --fix --ext .js,.ts .",
Expand Down

0 comments on commit d7cbbac

Please sign in to comment.