oxc-minify 0.61.1 → 0.62.0
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/index.d.ts +21 -0
- package/package.json +12 -12
package/index.d.ts
CHANGED
|
@@ -65,10 +65,31 @@ export interface MangleOptions {
|
|
|
65
65
|
* @default false
|
|
66
66
|
*/
|
|
67
67
|
toplevel?: boolean
|
|
68
|
+
/**
|
|
69
|
+
* Preserve `name` property for functions and classes.
|
|
70
|
+
*
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
keepNames?: boolean | MangleOptionsKeepNames
|
|
68
74
|
/** Debug mangled names. */
|
|
69
75
|
debug?: boolean
|
|
70
76
|
}
|
|
71
77
|
|
|
78
|
+
export interface MangleOptionsKeepNames {
|
|
79
|
+
/**
|
|
80
|
+
* Preserve `name` property for functions.
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
function: boolean
|
|
85
|
+
/**
|
|
86
|
+
* Preserve `name` property for classes.
|
|
87
|
+
*
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
class: boolean
|
|
91
|
+
}
|
|
92
|
+
|
|
72
93
|
/** Minify synchronously. */
|
|
73
94
|
export declare function minify(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): MinifyResult
|
|
74
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-minify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"engines": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"vitest": "3.0.
|
|
36
|
+
"vitest": "3.0.9"
|
|
37
37
|
},
|
|
38
38
|
"napi": {
|
|
39
39
|
"binaryName": "minify",
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@oxc-minify/binding-win32-x64-msvc": "0.
|
|
61
|
-
"@oxc-minify/binding-win32-arm64-msvc": "0.
|
|
62
|
-
"@oxc-minify/binding-linux-x64-gnu": "0.
|
|
63
|
-
"@oxc-minify/binding-linux-x64-musl": "0.
|
|
64
|
-
"@oxc-minify/binding-linux-arm64-gnu": "0.
|
|
65
|
-
"@oxc-minify/binding-linux-arm64-musl": "0.
|
|
66
|
-
"@oxc-minify/binding-linux-arm-gnueabihf": "0.
|
|
67
|
-
"@oxc-minify/binding-darwin-x64": "0.
|
|
68
|
-
"@oxc-minify/binding-darwin-arm64": "0.
|
|
69
|
-
"@oxc-minify/binding-wasm32-wasi": "0.
|
|
60
|
+
"@oxc-minify/binding-win32-x64-msvc": "0.62.0",
|
|
61
|
+
"@oxc-minify/binding-win32-arm64-msvc": "0.62.0",
|
|
62
|
+
"@oxc-minify/binding-linux-x64-gnu": "0.62.0",
|
|
63
|
+
"@oxc-minify/binding-linux-x64-musl": "0.62.0",
|
|
64
|
+
"@oxc-minify/binding-linux-arm64-gnu": "0.62.0",
|
|
65
|
+
"@oxc-minify/binding-linux-arm64-musl": "0.62.0",
|
|
66
|
+
"@oxc-minify/binding-linux-arm-gnueabihf": "0.62.0",
|
|
67
|
+
"@oxc-minify/binding-darwin-x64": "0.62.0",
|
|
68
|
+
"@oxc-minify/binding-darwin-arm64": "0.62.0",
|
|
69
|
+
"@oxc-minify/binding-wasm32-wasi": "0.62.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build-dev": "napi build --no-dts-cache --platform",
|