@rspack-canary/browser 1.5.5-canary-f4d631e6-20250915072424 → 1.5.6-canary-95c56d3d-20250917183900
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/dist/index.mjs +39 -40
- package/dist/napi-binding.d.ts +1 -1
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +7 -7
- package/dist/schema/utils.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -14715,8 +14715,8 @@ var __webpack_modules__ = {
|
|
|
14715
14715
|
}
|
|
14716
14716
|
utils.intFromLE = intFromLE;
|
|
14717
14717
|
},
|
|
14718
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.18.
|
|
14719
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.
|
|
14718
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.18.3/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14719
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.3/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14720
14720
|
const dirname = (path)=>{
|
|
14721
14721
|
let idx = path.length - 1;
|
|
14722
14722
|
while(idx >= 0){
|
|
@@ -15010,7 +15010,7 @@ var __webpack_modules__ = {
|
|
|
15010
15010
|
}
|
|
15011
15011
|
};
|
|
15012
15012
|
},
|
|
15013
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.18.
|
|
15013
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.18.3/node_modules/enhanced-resolve/lib/util/process-browser.js": function(module) {
|
|
15014
15014
|
module.exports = {
|
|
15015
15015
|
versions: {},
|
|
15016
15016
|
nextTick (fn) {
|
|
@@ -35197,37 +35197,31 @@ var __webpack_modules__ = {
|
|
|
35197
35197
|
return out;
|
|
35198
35198
|
};
|
|
35199
35199
|
},
|
|
35200
|
-
"../../node_modules/.pnpm/browserslist-load-config@1.0.
|
|
35200
|
+
"../../node_modules/.pnpm/browserslist-load-config@1.0.1/node_modules/browserslist-load-config/dist/index.cjs": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
35201
35201
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
35202
|
-
var
|
|
35202
|
+
var __nested_webpack_require_18_37__ = {};
|
|
35203
35203
|
(()=>{
|
|
35204
|
-
|
|
35205
|
-
var getter = module && module.__esModule ?
|
|
35206
|
-
|
|
35207
|
-
} : function() {
|
|
35208
|
-
return module;
|
|
35209
|
-
};
|
|
35210
|
-
__nested_webpack_require_39_58__.d(getter, {
|
|
35204
|
+
__nested_webpack_require_18_37__.n = (module)=>{
|
|
35205
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
35206
|
+
__nested_webpack_require_18_37__.d(getter, {
|
|
35211
35207
|
a: getter
|
|
35212
35208
|
});
|
|
35213
35209
|
return getter;
|
|
35214
35210
|
};
|
|
35215
35211
|
})();
|
|
35216
35212
|
(()=>{
|
|
35217
|
-
|
|
35218
|
-
for(var key in definition)if (
|
|
35213
|
+
__nested_webpack_require_18_37__.d = (exports1, definition)=>{
|
|
35214
|
+
for(var key in definition)if (__nested_webpack_require_18_37__.o(definition, key) && !__nested_webpack_require_18_37__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
35219
35215
|
enumerable: true,
|
|
35220
35216
|
get: definition[key]
|
|
35221
35217
|
});
|
|
35222
35218
|
};
|
|
35223
35219
|
})();
|
|
35224
35220
|
(()=>{
|
|
35225
|
-
|
|
35226
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
35227
|
-
};
|
|
35221
|
+
__nested_webpack_require_18_37__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
35228
35222
|
})();
|
|
35229
35223
|
(()=>{
|
|
35230
|
-
|
|
35224
|
+
__nested_webpack_require_18_37__.r = (exports1)=>{
|
|
35231
35225
|
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
35232
35226
|
value: 'Module'
|
|
35233
35227
|
});
|
|
@@ -35237,15 +35231,15 @@ var __webpack_modules__ = {
|
|
|
35237
35231
|
};
|
|
35238
35232
|
})();
|
|
35239
35233
|
var __nested_webpack_exports__ = {};
|
|
35240
|
-
|
|
35241
|
-
|
|
35242
|
-
|
|
35243
|
-
|
|
35234
|
+
__nested_webpack_require_18_37__.r(__nested_webpack_exports__);
|
|
35235
|
+
__nested_webpack_require_18_37__.d(__nested_webpack_exports__, {
|
|
35236
|
+
loadConfig: ()=>loadConfig,
|
|
35237
|
+
findConfig: ()=>findConfig
|
|
35244
35238
|
});
|
|
35245
35239
|
const external_node_fs_namespaceObject = __webpack_require__("./src/browser/fs.ts");
|
|
35246
|
-
var external_node_fs_default = /*#__PURE__*/
|
|
35240
|
+
var external_node_fs_default = /*#__PURE__*/ __nested_webpack_require_18_37__.n(external_node_fs_namespaceObject);
|
|
35247
35241
|
const external_node_path_namespaceObject = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
35248
|
-
var external_node_path_default = /*#__PURE__*/
|
|
35242
|
+
var external_node_path_default = /*#__PURE__*/ __nested_webpack_require_18_37__.n(external_node_path_namespaceObject);
|
|
35249
35243
|
function _define_property(obj, key, value) {
|
|
35250
35244
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
35251
35245
|
value: value,
|
|
@@ -35375,9 +35369,13 @@ var __webpack_modules__ = {
|
|
|
35375
35369
|
return pickEnv(config, opts);
|
|
35376
35370
|
}
|
|
35377
35371
|
}
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35372
|
+
exports.findConfig = __nested_webpack_exports__.findConfig;
|
|
35373
|
+
exports.loadConfig = __nested_webpack_exports__.loadConfig;
|
|
35374
|
+
for(var __webpack_i__ in __nested_webpack_exports__)if (-1 === [
|
|
35375
|
+
"findConfig",
|
|
35376
|
+
"loadConfig"
|
|
35377
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __nested_webpack_exports__[__webpack_i__];
|
|
35378
|
+
Object.defineProperty(exports, "__esModule", {
|
|
35381
35379
|
value: true
|
|
35382
35380
|
});
|
|
35383
35381
|
},
|
|
@@ -44208,6 +44206,7 @@ function _instanceof(cls, params = {
|
|
|
44208
44206
|
return inst;
|
|
44209
44207
|
}
|
|
44210
44208
|
const numberOrInfinity = schemas_number().or(literal(1 / 0));
|
|
44209
|
+
const intOrInfinity = schemas_int().or(literal(1 / 0));
|
|
44211
44210
|
const anyFunction = custom((data)=>"function" == typeof data, {
|
|
44212
44211
|
error: (input)=>({
|
|
44213
44212
|
message: `Expected function, received ${getParsedType(input)}`
|
|
@@ -46705,7 +46704,7 @@ const browserslistTargetHandler_resolve = (browsers)=>{
|
|
|
46705
46704
|
var target_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
46706
46705
|
const getBrowserslistTargetHandler = memoize(()=>browserslistTargetHandler_namespaceObject);
|
|
46707
46706
|
const hasBrowserslistConfig = (context)=>{
|
|
46708
|
-
const { findConfig } = __webpack_require__("../../node_modules/.pnpm/browserslist-load-config@1.0.
|
|
46707
|
+
const { findConfig } = __webpack_require__("../../node_modules/.pnpm/browserslist-load-config@1.0.1/node_modules/browserslist-load-config/dist/index.cjs");
|
|
46709
46708
|
return Boolean(findConfig(context));
|
|
46710
46709
|
};
|
|
46711
46710
|
const getDefaultTarget = (context)=>hasBrowserslistConfig(context) ? "browserslist" : "web";
|
|
@@ -47071,7 +47070,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47071
47070
|
if ("object" == typeof rspackFuture) {
|
|
47072
47071
|
D(rspackFuture, "bundlerInfo", {});
|
|
47073
47072
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47074
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
47073
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.6-canary-95c56d3d-20250917183900");
|
|
47075
47074
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47076
47075
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47077
47076
|
}
|
|
@@ -51167,7 +51166,7 @@ class MultiStats {
|
|
|
51167
51166
|
return obj;
|
|
51168
51167
|
});
|
|
51169
51168
|
if (childOptions.version) {
|
|
51170
|
-
obj.rspackVersion = "1.5.
|
|
51169
|
+
obj.rspackVersion = "1.5.6-canary-95c56d3d-20250917183900";
|
|
51171
51170
|
obj.version = "5.75.0";
|
|
51172
51171
|
}
|
|
51173
51172
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52477,7 +52476,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52477
52476
|
},
|
|
52478
52477
|
version: (object)=>{
|
|
52479
52478
|
object.version = "5.75.0";
|
|
52480
|
-
object.rspackVersion = "1.5.
|
|
52479
|
+
object.rspackVersion = "1.5.6-canary-95c56d3d-20250917183900";
|
|
52481
52480
|
},
|
|
52482
52481
|
env: (object, _compilation, _context, { _env })=>{
|
|
52483
52482
|
object.env = _env;
|
|
@@ -54517,7 +54516,7 @@ class LoaderTargetPlugin {
|
|
|
54517
54516
|
this.target = target;
|
|
54518
54517
|
}
|
|
54519
54518
|
}
|
|
54520
|
-
var CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.
|
|
54519
|
+
var CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.3/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
54521
54520
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
54522
54521
|
const filterToFunction = (item)=>{
|
|
54523
54522
|
if ("string" == typeof item) {
|
|
@@ -56092,16 +56091,16 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56092
56091
|
groupModulesByAttributes: schemas_boolean(),
|
|
56093
56092
|
groupModulesByPath: schemas_boolean(),
|
|
56094
56093
|
groupModulesByExtension: schemas_boolean(),
|
|
56095
|
-
modulesSpace:
|
|
56096
|
-
chunkModulesSpace:
|
|
56097
|
-
nestedModulesSpace:
|
|
56094
|
+
modulesSpace: intOrInfinity,
|
|
56095
|
+
chunkModulesSpace: intOrInfinity,
|
|
56096
|
+
nestedModulesSpace: intOrInfinity,
|
|
56098
56097
|
relatedAssets: schemas_boolean(),
|
|
56099
56098
|
groupAssetsByEmitStatus: schemas_boolean(),
|
|
56100
56099
|
groupAssetsByInfo: schemas_boolean(),
|
|
56101
56100
|
groupAssetsByPath: schemas_boolean(),
|
|
56102
56101
|
groupAssetsByExtension: schemas_boolean(),
|
|
56103
56102
|
groupAssetsByChunk: schemas_boolean(),
|
|
56104
|
-
assetsSpace:
|
|
56103
|
+
assetsSpace: intOrInfinity,
|
|
56105
56104
|
orphanModules: schemas_boolean(),
|
|
56106
56105
|
excludeModules: schemas_array(schemas_string().or(_instanceof(RegExp)).or(anyFunction)).or(schemas_string()).or(_instanceof(RegExp)).or(anyFunction).or(schemas_boolean()),
|
|
56107
56106
|
excludeAssets: schemas_array(schemas_string().or(_instanceof(RegExp)).or(anyFunction)).or(schemas_string()).or(_instanceof(RegExp)).or(anyFunction),
|
|
@@ -56119,7 +56118,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56119
56118
|
chunkOrigins: schemas_boolean(),
|
|
56120
56119
|
runtime: schemas_boolean(),
|
|
56121
56120
|
depth: schemas_boolean(),
|
|
56122
|
-
reasonsSpace:
|
|
56121
|
+
reasonsSpace: intOrInfinity,
|
|
56123
56122
|
groupReasonsByOrigin: schemas_boolean(),
|
|
56124
56123
|
errorDetails: schemas_boolean(),
|
|
56125
56124
|
errorStack: schemas_boolean(),
|
|
@@ -56127,8 +56126,8 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56127
56126
|
cachedModules: schemas_boolean(),
|
|
56128
56127
|
cachedAssets: schemas_boolean(),
|
|
56129
56128
|
cached: schemas_boolean(),
|
|
56130
|
-
errorsSpace:
|
|
56131
|
-
warningsSpace:
|
|
56129
|
+
errorsSpace: intOrInfinity,
|
|
56130
|
+
warningsSpace: intOrInfinity
|
|
56132
56131
|
}).partial();
|
|
56133
56132
|
const statsValue = schemas_boolean().or(statsPresets).or(statsOptions);
|
|
56134
56133
|
const plugin = union([
|
|
@@ -56926,7 +56925,7 @@ function transformSync(source, options) {
|
|
|
56926
56925
|
const _options = JSON.stringify(options || {});
|
|
56927
56926
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56928
56927
|
}
|
|
56929
|
-
const exports_rspackVersion = "1.5.
|
|
56928
|
+
const exports_rspackVersion = "1.5.6-canary-95c56d3d-20250917183900";
|
|
56930
56929
|
const exports_version = "5.75.0";
|
|
56931
56930
|
const exports_WebpackError = Error;
|
|
56932
56931
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -1538,7 +1538,7 @@ export interface NapiResolveOptions {
|
|
|
1538
1538
|
* Create aliases to import or require certain modules more easily.
|
|
1539
1539
|
* A trailing $ can also be added to the given object's keys to signify an exact match.
|
|
1540
1540
|
*/
|
|
1541
|
-
alias?: Record<string,
|
|
1541
|
+
alias?: Record<string, string | false | string[]>
|
|
1542
1542
|
/**
|
|
1543
1543
|
* A list of alias fields in description files.
|
|
1544
1544
|
* Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec).
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -554,16 +554,16 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
554
554
|
groupModulesByAttributes: z.ZodOptional<z.ZodBoolean>;
|
|
555
555
|
groupModulesByPath: z.ZodOptional<z.ZodBoolean>;
|
|
556
556
|
groupModulesByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
-
modulesSpace: z.ZodOptional<z.ZodInt
|
|
558
|
-
chunkModulesSpace: z.ZodOptional<z.ZodInt
|
|
559
|
-
nestedModulesSpace: z.ZodOptional<z.ZodInt
|
|
557
|
+
modulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
558
|
+
chunkModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
559
|
+
nestedModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
560
560
|
relatedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
561
561
|
groupAssetsByEmitStatus: z.ZodOptional<z.ZodBoolean>;
|
|
562
562
|
groupAssetsByInfo: z.ZodOptional<z.ZodBoolean>;
|
|
563
563
|
groupAssetsByPath: z.ZodOptional<z.ZodBoolean>;
|
|
564
564
|
groupAssetsByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
565
565
|
groupAssetsByChunk: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
-
assetsSpace: z.ZodOptional<z.ZodInt
|
|
566
|
+
assetsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
567
567
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
568
568
|
excludeModules: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>, z.ZodBoolean]>>;
|
|
569
569
|
excludeAssets: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
|
@@ -581,7 +581,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
581
581
|
chunkOrigins: z.ZodOptional<z.ZodBoolean>;
|
|
582
582
|
runtime: z.ZodOptional<z.ZodBoolean>;
|
|
583
583
|
depth: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
-
reasonsSpace: z.ZodOptional<z.ZodInt
|
|
584
|
+
reasonsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
585
585
|
groupReasonsByOrigin: z.ZodOptional<z.ZodBoolean>;
|
|
586
586
|
errorDetails: z.ZodOptional<z.ZodBoolean>;
|
|
587
587
|
errorStack: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -589,8 +589,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
589
589
|
cachedModules: z.ZodOptional<z.ZodBoolean>;
|
|
590
590
|
cachedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
591
591
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
592
|
-
errorsSpace: z.ZodOptional<z.ZodInt
|
|
593
|
-
warningsSpace: z.ZodOptional<z.ZodInt
|
|
592
|
+
errorsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
593
|
+
warningsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
594
594
|
}, z.core.$strict>]>>;
|
|
595
595
|
snapshot: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
596
596
|
optimization: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export declare const numberOrInfinity: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>;
|
|
3
|
+
export declare const intOrInfinity: z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>;
|
|
3
4
|
export declare const anyFunction: z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6-canary-95c56d3d-20250917183900",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"directory": "packages/rspack-browser"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@napi-rs/wasm-runtime": "^1.0.
|
|
32
|
+
"@napi-rs/wasm-runtime": "^1.0.5",
|
|
33
33
|
"@rspack/lite-tapable": "1.0.1",
|
|
34
|
-
"@swc/types": "0.1.
|
|
34
|
+
"@swc/types": "0.1.25",
|
|
35
35
|
"@types/watchpack": "^2.4.4",
|
|
36
36
|
"memfs": "4.38.2",
|
|
37
37
|
"webpack-sources": "3.3.3"
|