@rspack/binding 1.4.0-beta.0 → 1.4.0-beta.1

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/binding.d.ts +11 -17
  2. package/package.json +11 -10
package/binding.d.ts CHANGED
@@ -1059,7 +1059,7 @@ export interface JsRsdoctorModule {
1059
1059
  belongModules: Array<number>
1060
1060
  chunks: Array<number>
1061
1061
  issuerPath: Array<number>
1062
- bailoutReason?: string
1062
+ bailoutReason: Array<string>
1063
1063
  }
1064
1064
 
1065
1065
  export interface JsRsdoctorModuleGraph {
@@ -1479,6 +1479,8 @@ export declare function loadBrowserslist(input: string | undefined | null, conte
1479
1479
 
1480
1480
  export declare function minify(source: string, options: string): Promise<TransformOutput>
1481
1481
 
1482
+ export declare function minifySync(source: string, options: string): TransformOutput
1483
+
1482
1484
  export interface NodeFsStats {
1483
1485
  isFile: boolean
1484
1486
  isDirectory: boolean
@@ -1883,6 +1885,7 @@ parallelCodeSplitting: boolean
1883
1885
  rspackFuture?: RawRspackFuture
1884
1886
  cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
1885
1887
  useInputFileSystem?: false | Array<RegExp>
1888
+ inlineConst: boolean
1886
1889
  }
1887
1890
 
1888
1891
  export interface RawExperimentSnapshotOptions {
@@ -2092,6 +2095,11 @@ export interface RawJavascriptParserOptions {
2092
2095
  * @experimental
2093
2096
  */
2094
2097
  importDynamic?: boolean
2098
+ /**
2099
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2100
+ * @experimental
2101
+ */
2102
+ inlineConst?: boolean
2095
2103
  }
2096
2104
 
2097
2105
  export interface RawJsonGeneratorOptions {
@@ -2692,14 +2700,6 @@ export interface RegisterJsTaps {
2692
2700
  registerRsdoctorPluginAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorAssetPatch) => Promise<boolean | undefined>); stage: number; }>
2693
2701
  }
2694
2702
 
2695
- /**
2696
- * Shutdown the tokio runtime manually.
2697
- *
2698
- * This is required for the wasm target with `tokio_unstable` cfg.
2699
- * In the wasm runtime, the `park` threads will hang there until the tokio::Runtime is shutdown.
2700
- */
2701
- export declare function shutdownAsyncRuntime(): void
2702
-
2703
2703
  export interface SourceMapDevToolPluginOptions {
2704
2704
  append?: (false | null) | string | Function
2705
2705
  columns?: boolean
@@ -2723,14 +2723,6 @@ export interface SourcePosition {
2723
2723
  column?: number
2724
2724
  }
2725
2725
 
2726
- /**
2727
- * Start the async runtime manually.
2728
- *
2729
- * This is required when the async runtime is shutdown manually.
2730
- * Usually it's used in test.
2731
- */
2732
- export declare function startAsyncRuntime(): void
2733
-
2734
2726
  export declare function syncTraceEvent(events: Array<RawTraceEvent>): void
2735
2727
 
2736
2728
  export interface SyntheticDependencyLocation {
@@ -2765,3 +2757,5 @@ export interface TransformOutput {
2765
2757
  map?: string
2766
2758
  diagnostics: Array<string>
2767
2759
  }
2760
+
2761
+ export declare function transformSync(source: string, options: string): TransformOutput
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.4.0-beta.1",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -47,15 +47,16 @@
47
47
  }
48
48
  },
49
49
  "optionalDependencies": {
50
- "@rspack/binding-darwin-arm64": "1.4.0-beta.0",
51
- "@rspack/binding-linux-arm64-gnu": "1.4.0-beta.0",
52
- "@rspack/binding-linux-arm64-musl": "1.4.0-beta.0",
53
- "@rspack/binding-win32-arm64-msvc": "1.4.0-beta.0",
54
- "@rspack/binding-win32-ia32-msvc": "1.4.0-beta.0",
55
- "@rspack/binding-darwin-x64": "1.4.0-beta.0",
56
- "@rspack/binding-win32-x64-msvc": "1.4.0-beta.0",
57
- "@rspack/binding-linux-x64-musl": "1.4.0-beta.0",
58
- "@rspack/binding-linux-x64-gnu": "1.4.0-beta.0"
50
+ "@rspack/binding-darwin-arm64": "1.4.0-beta.1",
51
+ "@rspack/binding-win32-arm64-msvc": "1.4.0-beta.1",
52
+ "@rspack/binding-linux-arm64-musl": "1.4.0-beta.1",
53
+ "@rspack/binding-linux-arm64-gnu": "1.4.0-beta.1",
54
+ "@rspack/binding-win32-ia32-msvc": "1.4.0-beta.1",
55
+ "@rspack/binding-win32-x64-msvc": "1.4.0-beta.1",
56
+ "@rspack/binding-linux-x64-gnu": "1.4.0-beta.1",
57
+ "@rspack/binding-wasm32-wasi": "1.4.0-beta.1",
58
+ "@rspack/binding-darwin-x64": "1.4.0-beta.1",
59
+ "@rspack/binding-linux-x64-musl": "1.4.0-beta.1"
59
60
  },
60
61
  "scripts": {
61
62
  "build:dev": "node scripts/build.js",