File tree Expand file tree Collapse file tree 5 files changed +33
-3
lines changed
Expand file tree Collapse file tree 5 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 11# Built files
2- * .js
2+ * .test. js
33! binding.js
44* .map
55* .d.ts
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3+ exports . minifySync = exports . minify = void 0 ;
4+ const binding = require ( "./binding" ) ;
5+ async function minify ( content , options ) {
6+ return binding . minify ( content , toBuffer ( options ) ) ;
7+ }
8+ exports . minify = minify ;
9+ function minifySync ( content , options ) {
10+ return binding . minifySync ( content , toBuffer ( options ) ) ;
11+ }
12+ exports . minifySync = minifySync ;
13+ function toBuffer ( t ) {
14+ return Buffer . from ( JSON . stringify ( t ) ) ;
15+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " @swc/css" ,
3- "version" : " 0.0.13 " ,
3+ "version" : " 0.0.14 " ,
44 "description" : " Super-fast alternative for postcss" ,
55 "homepage" : " https://swc.rs" ,
66 "main" : " ./lib/index.js" ,
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3+ exports . minifySync = exports . minify = void 0 ;
4+ const binding = require ( "./binding" ) ;
5+ async function minify ( content , options ) {
6+ return binding . minify ( content , toBuffer ( options ) ) ;
7+ }
8+ exports . minify = minify ;
9+ function minifySync ( content , options ) {
10+ return binding . minifySync ( content , toBuffer ( options ) ) ;
11+ }
12+ exports . minifySync = minifySync ;
13+ function toBuffer ( t ) {
14+ return Buffer . from ( JSON . stringify ( t ) ) ;
15+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " @swc/html" ,
3- "version" : " 0.0.13 " ,
3+ "version" : " 0.0.14 " ,
44 "description" : " Super-fast alternative for posthtml" ,
55 "homepage" : " https://swc.rs" ,
66 "main" : " ./lib/index.js" ,
You can’t perform that action at this time.
0 commit comments