oxc-minify 0.60.0 → 0.61.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 +13 -13
package/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface CompressOptions {
|
|
|
23
23
|
* @default 'esnext'
|
|
24
24
|
*/
|
|
25
25
|
target?: 'esnext' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024'
|
|
26
|
+
/** Keep function / class names. */
|
|
27
|
+
keepNames?: CompressOptionsKeepNames
|
|
26
28
|
/**
|
|
27
29
|
* Pass true to discard calls to `console.*`.
|
|
28
30
|
*
|
|
@@ -37,6 +39,25 @@ export interface CompressOptions {
|
|
|
37
39
|
dropDebugger?: boolean
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
export interface CompressOptionsKeepNames {
|
|
43
|
+
/**
|
|
44
|
+
* Keep function names so that `Function.prototype.name` is preserved.
|
|
45
|
+
*
|
|
46
|
+
* This does not guarantee that the `undefined` name is preserved.
|
|
47
|
+
*
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
function: boolean
|
|
51
|
+
/**
|
|
52
|
+
* Keep class names so that `Class.prototype.name` is preserved.
|
|
53
|
+
*
|
|
54
|
+
* This does not guarantee that the `undefined` name is preserved.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
class: boolean
|
|
59
|
+
}
|
|
60
|
+
|
|
40
61
|
export interface MangleOptions {
|
|
41
62
|
/**
|
|
42
63
|
* Pass `true` to mangle names declared in the top level scope.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-minify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"engines": {
|
|
@@ -57,20 +57,20 @@
|
|
|
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.61.0",
|
|
61
|
+
"@oxc-minify/binding-win32-arm64-msvc": "0.61.0",
|
|
62
|
+
"@oxc-minify/binding-linux-x64-gnu": "0.61.0",
|
|
63
|
+
"@oxc-minify/binding-linux-x64-musl": "0.61.0",
|
|
64
|
+
"@oxc-minify/binding-linux-arm64-gnu": "0.61.0",
|
|
65
|
+
"@oxc-minify/binding-linux-arm64-musl": "0.61.0",
|
|
66
|
+
"@oxc-minify/binding-linux-arm-gnueabihf": "0.61.0",
|
|
67
|
+
"@oxc-minify/binding-darwin-x64": "0.61.0",
|
|
68
|
+
"@oxc-minify/binding-darwin-arm64": "0.61.0",
|
|
69
|
+
"@oxc-minify/binding-wasm32-wasi": "0.61.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build-dev": "napi build --no-dts-cache --platform",
|
|
73
|
-
"build": "pnpm run build-dev --release",
|
|
74
|
-
"test": "vitest --
|
|
73
|
+
"build": "pnpm run build-dev --features allocator --release",
|
|
74
|
+
"test": "vitest run --dir ./test && tsc"
|
|
75
75
|
}
|
|
76
76
|
}
|