@rspack/binding 1.5.7 → 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.
- package/napi-binding.d.ts +39 -22
- package/package.json +15 -15
package/napi-binding.d.ts
CHANGED
|
@@ -526,6 +526,7 @@ export declare enum BuiltinPluginName {
|
|
|
526
526
|
CommonJsChunkFormatPlugin = 'CommonJsChunkFormatPlugin',
|
|
527
527
|
ArrayPushCallbackChunkFormatPlugin = 'ArrayPushCallbackChunkFormatPlugin',
|
|
528
528
|
ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin',
|
|
529
|
+
EsmLibraryPlugin = 'EsmLibraryPlugin',
|
|
529
530
|
HotModuleReplacementPlugin = 'HotModuleReplacementPlugin',
|
|
530
531
|
LimitChunkCountPlugin = 'LimitChunkCountPlugin',
|
|
531
532
|
WorkerPlugin = 'WorkerPlugin',
|
|
@@ -589,6 +590,7 @@ export declare enum BuiltinPluginName {
|
|
|
589
590
|
RstestPlugin = 'RstestPlugin',
|
|
590
591
|
RslibPlugin = 'RslibPlugin',
|
|
591
592
|
CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin',
|
|
593
|
+
URLPlugin = 'URLPlugin',
|
|
592
594
|
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
|
|
593
595
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
594
596
|
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
@@ -2099,7 +2101,6 @@ export interface RawExperimentCacheOptionsPersistent {
|
|
|
2099
2101
|
}
|
|
2100
2102
|
|
|
2101
2103
|
export interface RawExperiments {
|
|
2102
|
-
layers: boolean
|
|
2103
2104
|
topLevelAwait: boolean
|
|
2104
2105
|
incremental?: false | { [key: string]: boolean }
|
|
2105
2106
|
parallelCodeSplitting: boolean
|
|
@@ -2285,6 +2286,14 @@ export interface RawIntegrityItem {
|
|
|
2285
2286
|
integrity: string
|
|
2286
2287
|
}
|
|
2287
2288
|
|
|
2289
|
+
export declare enum RawJavascriptParserCommonjsExports {
|
|
2290
|
+
SkipInEsm = 'skipInEsm'
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
export interface RawJavascriptParserCommonjsOptions {
|
|
2294
|
+
exports?: boolean | 'skipInEsm'
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2288
2297
|
export interface RawJavascriptParserOptions {
|
|
2289
2298
|
dynamicImportMode?: string
|
|
2290
2299
|
dynamicImportPreload?: string
|
|
@@ -2317,27 +2326,28 @@ export interface RawJavascriptParserOptions {
|
|
|
2317
2326
|
* @experimental
|
|
2318
2327
|
*/
|
|
2319
2328
|
requireResolve?: boolean
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2329
|
+
commonjs?: boolean | { exports?: boolean | 'skipInEsm' }
|
|
2330
|
+
/**
|
|
2331
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2332
|
+
* @experimental
|
|
2333
|
+
*/
|
|
2334
|
+
importDynamic?: boolean
|
|
2335
|
+
commonjsMagicComments?: boolean
|
|
2336
|
+
/**
|
|
2337
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2338
|
+
* @experimental
|
|
2339
|
+
*/
|
|
2340
|
+
inlineConst?: boolean
|
|
2341
|
+
/**
|
|
2342
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2343
|
+
* @experimental
|
|
2344
|
+
*/
|
|
2345
|
+
typeReexportsPresence?: string
|
|
2346
|
+
/**
|
|
2347
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2348
|
+
* @experimental
|
|
2349
|
+
*/
|
|
2350
|
+
jsx?: boolean
|
|
2341
2351
|
}
|
|
2342
2352
|
|
|
2343
2353
|
export interface RawJsonGeneratorOptions {
|
|
@@ -2478,6 +2488,8 @@ export interface RawModuleRule {
|
|
|
2478
2488
|
rules?: Array<RawModuleRule>
|
|
2479
2489
|
/** Specifies the category of the loader. No value means normal loader. */
|
|
2480
2490
|
enforce?: 'pre' | 'post'
|
|
2491
|
+
/** Whether to extract source maps from the module. */
|
|
2492
|
+
extractSourceMap?: boolean
|
|
2481
2493
|
}
|
|
2482
2494
|
|
|
2483
2495
|
/**
|
|
@@ -2713,6 +2725,11 @@ export interface RawRslibPluginOptions {
|
|
|
2713
2725
|
* @default `false`
|
|
2714
2726
|
*/
|
|
2715
2727
|
compactExternalModuleDynamicImport?: boolean
|
|
2728
|
+
/**
|
|
2729
|
+
* Add shims for javascript/esm modules
|
|
2730
|
+
* @default `false`
|
|
2731
|
+
*/
|
|
2732
|
+
forceNodeShims?: boolean
|
|
2716
2733
|
}
|
|
2717
2734
|
|
|
2718
2735
|
export interface RawRspackFuture {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.
|
|
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": "
|
|
23
|
+
"@napi-rs/wasm-runtime": "1.0.7",
|
|
24
24
|
"emnapi": "^1.5.0",
|
|
25
|
-
"typescript": "^5.9.
|
|
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.
|
|
55
|
-
"@rspack/binding-win32-arm64-msvc": "1.
|
|
56
|
-
"@rspack/binding-linux-arm64-gnu": "1.
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-win32-x64-msvc": "1.
|
|
62
|
-
"@rspack/binding-linux-x64-gnu": "1.
|
|
63
|
-
"@rspack/binding-linux-x64-musl": "1.
|
|
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
|
|
74
|
-
"build:release:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads
|
|
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
|
}
|