@suseejs/plugin-terser 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ const terser = require("terser");
9
9
  *
10
10
  * @returns {SuseeTypes.SuseePlugin} A Susee plugin object.
11
11
  */
12
- const suseeTerser = (terserMinifyOptions) => {
12
+ function suseeTerser(terserMinifyOptions) {
13
13
  return {
14
14
  type: "post-process",
15
15
  async: true,
@@ -21,6 +21,6 @@ const suseeTerser = (terserMinifyOptions) => {
21
21
  return code;
22
22
  },
23
23
  };
24
- };
24
+ }
25
25
  module.exports = suseeTerser;
26
26
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";AACA,iCAAkC;AAElC;;;;;;;;GAQG;AACH,MAAM,WAAW,GAAmC,CAClD,mBAAsD,EAC9B,EAAE;IAC1B,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAS,WAAW,CAAC"}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";AACA,iCAAkC;AAElC;;;;;;;;GAQG;AACH,SAAS,WAAW,CAClB,mBAAsD;IAEtD,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iBAAS,WAAW,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type SuseeTypes = require("@suseejs/types");
2
+ import terser = require("terser");
2
3
  /**
3
4
  * A Susee plugin that minifies JavaScript code using the Terser library.
4
5
  *
@@ -8,6 +9,6 @@ import type SuseeTypes = require("@suseejs/types");
8
9
  *
9
10
  * @returns {SuseeTypes.SuseePlugin} A Susee plugin object.
10
11
  */
11
- declare const suseeTerser: SuseeTypes.SuseePluginFunction;
12
+ declare function suseeTerser(terserMinifyOptions?: terser.MinifyOptions | undefined): SuseeTypes.SuseePlugin;
12
13
  export = suseeTerser;
13
14
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAAA,YAAY,UAAU,GAAG,QAAQ,gBAAgB,CAAC,CAAC;AAGnD;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,UAAU,CAAC,mBAc7B,CAAC;AAEF,SAAS,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAAA,YAAY,UAAU,GAAG,QAAQ,gBAAgB,CAAC,CAAC;AACnD,OAAO,MAAM,GAAG,QAAQ,QAAQ,CAAC,CAAC;AAElC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACrD,UAAU,CAAC,WAAW,CAYxB;AAED,SAAS,WAAW,CAAC"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type * as SuseeTypes from "@suseejs/types";
2
+ import * as terser from "terser";
2
3
  /**
3
4
  * A Susee plugin that minifies JavaScript code using the Terser library.
4
5
  *
@@ -8,6 +9,6 @@ import type * as SuseeTypes from "@suseejs/types";
8
9
  *
9
10
  * @returns {SuseeTypes.SuseePlugin} A Susee plugin object.
10
11
  */
11
- declare const suseeTerser: SuseeTypes.SuseePluginFunction;
12
+ declare function suseeTerser(terserMinifyOptions?: terser.MinifyOptions | undefined): SuseeTypes.SuseePlugin;
12
13
  export default suseeTerser;
13
14
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAGlD;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,UAAU,CAAC,mBAc7B,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACrD,UAAU,CAAC,WAAW,CAYxB;AAED,eAAe,WAAW,CAAC"}
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import * as terser from "terser";
8
8
  *
9
9
  * @returns {SuseeTypes.SuseePlugin} A Susee plugin object.
10
10
  */
11
- const suseeTerser = (terserMinifyOptions) => {
11
+ function suseeTerser(terserMinifyOptions) {
12
12
  return {
13
13
  type: "post-process",
14
14
  async: true,
@@ -20,6 +20,6 @@ const suseeTerser = (terserMinifyOptions) => {
20
20
  return code;
21
21
  },
22
22
  };
23
- };
23
+ }
24
24
  export default suseeTerser;
25
25
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,WAAW,GAAmC,CAClD,mBAAsD,EAC9B,EAAE;IAC1B,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,SAAS,WAAW,CAClB,mBAAsD;IAEtD,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suseejs/plugin-terser",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Susee plugin terser",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",