oxc-transform 0.38.0 → 0.39.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 +11 -1
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -12,6 +12,14 @@ export interface ArrowFunctionsOptions {
|
|
|
12
12
|
spec?: boolean
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export interface CompilerAssumptions {
|
|
16
|
+
ignoreFunctionLength?: boolean
|
|
17
|
+
noDocumentAll?: boolean
|
|
18
|
+
objectRestNoSymbols?: boolean
|
|
19
|
+
pureGetters?: boolean
|
|
20
|
+
setPublicClassFields?: boolean
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
export interface Es2015Options {
|
|
16
24
|
/** Transform arrow functions into function expressions. */
|
|
17
25
|
arrowFunction?: ArrowFunctionsOptions
|
|
@@ -199,6 +207,8 @@ export interface TransformOptions {
|
|
|
199
207
|
* @see {@link SourceMap}
|
|
200
208
|
*/
|
|
201
209
|
sourcemap?: boolean
|
|
210
|
+
/** Set assumptions in order to produce smaller output. */
|
|
211
|
+
assumptions?: CompilerAssumptions
|
|
202
212
|
/** Configure how TypeScript is transformed. */
|
|
203
213
|
typescript?: TypeScriptOptions
|
|
204
214
|
/** Configure how TSX and JSX are transformed. */
|
|
@@ -215,7 +225,7 @@ export interface TransformOptions {
|
|
|
215
225
|
*
|
|
216
226
|
* @default `esnext` (No transformation)
|
|
217
227
|
*
|
|
218
|
-
* @see [esbuild#target](
|
|
228
|
+
* @see [esbuild#target](https://esbuild.github.io/api/#target)
|
|
219
229
|
*/
|
|
220
230
|
target?: string | Array<string>
|
|
221
231
|
/** Define Plugin */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Oxc transform Node API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"transform"
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"index.js"
|
|
24
24
|
],
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@oxc-transform/binding-win32-x64-msvc": "0.
|
|
27
|
-
"@oxc-transform/binding-win32-arm64-msvc": "0.
|
|
28
|
-
"@oxc-transform/binding-linux-x64-gnu": "0.
|
|
29
|
-
"@oxc-transform/binding-linux-arm64-gnu": "0.
|
|
30
|
-
"@oxc-transform/binding-linux-x64-musl": "0.
|
|
31
|
-
"@oxc-transform/binding-linux-arm64-musl": "0.
|
|
32
|
-
"@oxc-transform/binding-darwin-x64": "0.
|
|
33
|
-
"@oxc-transform/binding-darwin-arm64": "0.
|
|
26
|
+
"@oxc-transform/binding-win32-x64-msvc": "0.39.0",
|
|
27
|
+
"@oxc-transform/binding-win32-arm64-msvc": "0.39.0",
|
|
28
|
+
"@oxc-transform/binding-linux-x64-gnu": "0.39.0",
|
|
29
|
+
"@oxc-transform/binding-linux-arm64-gnu": "0.39.0",
|
|
30
|
+
"@oxc-transform/binding-linux-x64-musl": "0.39.0",
|
|
31
|
+
"@oxc-transform/binding-linux-arm64-musl": "0.39.0",
|
|
32
|
+
"@oxc-transform/binding-darwin-x64": "0.39.0",
|
|
33
|
+
"@oxc-transform/binding-darwin-arm64": "0.39.0"
|
|
34
34
|
}
|
|
35
35
|
}
|