File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,13 @@ bun2nix.mkBunDerivation {
100100
101101 bunNix = ./bun.nix;
102102
103+ buildFlags = [
104+ "--compile"
105+ "--minify"
106+ "--sourcemap"
107+ "--bytecode"
108+ ];
109+
103110 index = ./index.ts;
104111}
105112```
Original file line number Diff line number Diff line change 5353 version ,
5454 src ,
5555 bunNix ,
56+ buildFlags ? [
57+ "--compile"
58+ "--minify"
59+ "--sourcemap"
60+ "--bytecode"
61+ ] ,
5662 ...
5763 } @ args : let
5864 bunDeps = callPackage bunNix { } ;
8692 runHook preBuild
8793
8894 # Create a bun binary with all the highest compile time optimizations enabled
89- bun build \
90- --compile \
91- --minify \
92- --sourcemap \
93- --bytecode \
94- ${ args . index } \
95- --outfile ${ name }
95+ bun build ${ lib . concatStringsSep " " buildFlags } ${ args . index } --outfile ${ name }
9696
9797 runHook postBuild
9898 '' ;
You can’t perform that action at this time.
0 commit comments