@rspack/binding 1.5.8 → 1.6.0-beta.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/napi-binding.d.ts +7 -1
  2. package/package.json +15 -15
package/napi-binding.d.ts CHANGED
@@ -2101,7 +2101,6 @@ export interface RawExperimentCacheOptionsPersistent {
2101
2101
  }
2102
2102
 
2103
2103
  export interface RawExperiments {
2104
- layers: boolean
2105
2104
  topLevelAwait: boolean
2106
2105
  incremental?: false | { [key: string]: boolean }
2107
2106
  parallelCodeSplitting: boolean
@@ -2489,6 +2488,8 @@ export interface RawModuleRule {
2489
2488
  rules?: Array<RawModuleRule>
2490
2489
  /** Specifies the category of the loader. No value means normal loader. */
2491
2490
  enforce?: 'pre' | 'post'
2491
+ /** Whether to extract source maps from the module. */
2492
+ extractSourceMap?: boolean
2492
2493
  }
2493
2494
 
2494
2495
  /**
@@ -2724,6 +2725,11 @@ export interface RawRslibPluginOptions {
2724
2725
  * @default `false`
2725
2726
  */
2726
2727
  compactExternalModuleDynamicImport?: boolean
2728
+ /**
2729
+ * Add shims for javascript/esm modules
2730
+ * @default `false`
2731
+ */
2732
+ forceNodeShims?: boolean
2727
2733
  }
2728
2734
 
2729
2735
  export interface RawRspackFuture {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.5.8",
3
+ "version": "1.6.0-beta.0",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -20,9 +20,9 @@
20
20
  "repository": "web-infra-dev/rspack",
21
21
  "devDependencies": {
22
22
  "@napi-rs/cli": "3.0.4",
23
- "@napi-rs/wasm-runtime": "^1.0.5",
23
+ "@napi-rs/wasm-runtime": "1.0.7",
24
24
  "emnapi": "^1.5.0",
25
- "typescript": "^5.9.2"
25
+ "typescript": "^5.9.3"
26
26
  },
27
27
  "napi": {
28
28
  "binaryName": "rspack",
@@ -51,16 +51,16 @@
51
51
  }
52
52
  },
53
53
  "optionalDependencies": {
54
- "@rspack/binding-darwin-arm64": "1.5.8",
55
- "@rspack/binding-linux-arm64-musl": "1.5.8",
56
- "@rspack/binding-win32-ia32-msvc": "1.5.8",
57
- "@rspack/binding-linux-arm64-gnu": "1.5.8",
58
- "@rspack/binding-wasm32-wasi": "1.5.8",
59
- "@rspack/binding-darwin-x64": "1.5.8",
60
- "@rspack/binding-win32-x64-msvc": "1.5.8",
61
- "@rspack/binding-win32-arm64-msvc": "1.5.8",
62
- "@rspack/binding-linux-x64-musl": "1.5.8",
63
- "@rspack/binding-linux-x64-gnu": "1.5.8"
54
+ "@rspack/binding-darwin-arm64": "1.6.0-beta.0",
55
+ "@rspack/binding-win32-arm64-msvc": "1.6.0-beta.0",
56
+ "@rspack/binding-linux-arm64-gnu": "1.6.0-beta.0",
57
+ "@rspack/binding-win32-ia32-msvc": "1.6.0-beta.0",
58
+ "@rspack/binding-darwin-x64": "1.6.0-beta.0",
59
+ "@rspack/binding-linux-arm64-musl": "1.6.0-beta.0",
60
+ "@rspack/binding-wasm32-wasi": "1.6.0-beta.0",
61
+ "@rspack/binding-win32-x64-msvc": "1.6.0-beta.0",
62
+ "@rspack/binding-linux-x64-gnu": "1.6.0-beta.0",
63
+ "@rspack/binding-linux-x64-musl": "1.6.0-beta.0"
64
64
  },
65
65
  "scripts": {
66
66
  "build:dev": "node scripts/build.js",
@@ -70,8 +70,8 @@
70
70
  "build:release": "node scripts/build.js --profile release",
71
71
  "build:dev:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js",
72
72
  "build:release:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js --profile release-wasi",
73
- "build:dev:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads BROWSER=1 node scripts/build.js",
74
- "build:release:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads BROWSER=1 node scripts/build.js --profile release-wasi",
73
+ "build:dev:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads RSPACK_TARGET_BROWSER=1 node scripts/build.js",
74
+ "build:release:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads RSPACK_TARGET_BROWSER=1 node scripts/build.js --profile release-wasi",
75
75
  "move-binding": "node scripts/move-binding",
76
76
  "test": "tsc -p tsconfig.type-test.json"
77
77
  }