File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export function xcssPlugin(config: CompileOptions): BunPlugin {
2525 const source = await Bun . file ( args . path ) . text ( ) ;
2626 const compiled = xcss . compile ( source , {
2727 from : args . path ,
28+ functions : config . functions ,
2829 globals : config . globals ,
2930 plugins : config . plugins ,
3031 } ) ;
@@ -42,6 +43,7 @@ export function xcssPlugin(config: CompileOptions): BunPlugin {
4243 } ;
4344}
4445
46+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4547async function minify ( artifacts : BuildArtifact [ ] ) : Promise < void > {
4648 const artifactsJs : BuildArtifact [ ] = [ ] ;
4749 const artifactsCss : BuildArtifact [ ] = [ ] ;
@@ -73,7 +75,6 @@ async function minify(artifacts: BuildArtifact[]): Promise<void> {
7375 pure_funcs : [ "performance.mark" , "performance.measure" ] ,
7476 } ,
7577 format : {
76- wrap_func_args : true ,
7778 wrap_iife : true ,
7879 } ,
7980 mangle : {
@@ -210,7 +211,8 @@ console.timeEnd("html");
210211
211212if ( ! dev ) {
212213 console . time ( "minify" ) ;
213- await minify ( out . outputs ) ;
214+ // FIXME: Uncomment once bun build artifact path bug is fixed.
215+ // await minify(out.outputs);
214216 console . timeEnd ( "minify" ) ;
215217}
216218
You can’t perform that action at this time.
0 commit comments