oxc-transform 0.37.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.
Files changed (2) hide show
  1. package/index.d.ts +25 -0
  2. 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,10 +207,27 @@ 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. */
205
215
  jsx?: JsxOptions
216
+ /**
217
+ * Sets the target environment for the generated JavaScript.
218
+ *
219
+ * The lowest target is `es2015`.
220
+ *
221
+ * Example:
222
+ *
223
+ * * 'es2015'
224
+ * * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
225
+ *
226
+ * @default `esnext` (No transformation)
227
+ *
228
+ * @see [esbuild#target](https://esbuild.github.io/api/#target)
229
+ */
230
+ target?: string | Array<string>
206
231
  /** Define Plugin */
207
232
  define?: Record<string, string>
208
233
  /** Inject Plugin */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-transform",
3
- "version": "0.37.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.37.0",
27
- "@oxc-transform/binding-win32-arm64-msvc": "0.37.0",
28
- "@oxc-transform/binding-linux-x64-gnu": "0.37.0",
29
- "@oxc-transform/binding-linux-arm64-gnu": "0.37.0",
30
- "@oxc-transform/binding-linux-x64-musl": "0.37.0",
31
- "@oxc-transform/binding-linux-arm64-musl": "0.37.0",
32
- "@oxc-transform/binding-darwin-x64": "0.37.0",
33
- "@oxc-transform/binding-darwin-arm64": "0.37.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
  }