@rspack/core 1.6.0 → 1.6.2
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/compiled/browserslist-load-config/index.js +2 -2
- package/compiled/watchpack/index.js +23 -23
- package/compiled/webpack-sources/index.js +82 -82
- package/dist/Resolver.d.ts +14 -2
- package/dist/config/devServer.d.ts +0 -1
- package/dist/config/normalization.d.ts +3 -0
- package/dist/config/types.d.ts +1 -0
- package/dist/container/ModuleFederationManifestPlugin.d.ts +37 -0
- package/dist/container/ModuleFederationPlugin.d.ts +2 -0
- package/dist/cssExtractLoader.js +5 -5
- package/dist/index.js +287 -166
- package/dist/worker.js +4 -14
- package/package.json +7 -7
package/dist/worker.js
CHANGED
|
@@ -209,7 +209,7 @@ var __webpack_modules__ = {
|
|
|
209
209
|
n: ()=>createHash_createHash
|
|
210
210
|
});
|
|
211
211
|
var external_node_util_ = __webpack_require__("node:util");
|
|
212
|
-
class
|
|
212
|
+
class WebpackError extends Error {
|
|
213
213
|
loc;
|
|
214
214
|
file;
|
|
215
215
|
chunk;
|
|
@@ -217,14 +217,14 @@ var __webpack_modules__ = {
|
|
|
217
217
|
details;
|
|
218
218
|
hideStack;
|
|
219
219
|
}
|
|
220
|
-
Object.defineProperty(
|
|
220
|
+
Object.defineProperty(WebpackError.prototype, external_node_util_.inspect.custom, {
|
|
221
221
|
value: function() {
|
|
222
222
|
return this.stack + (this.details ? `\n${this.details}` : "");
|
|
223
223
|
},
|
|
224
224
|
enumerable: !1,
|
|
225
225
|
configurable: !0
|
|
226
226
|
});
|
|
227
|
-
let
|
|
227
|
+
let lib_WebpackError = WebpackError, CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
|
|
228
228
|
function createMessage(method) {
|
|
229
229
|
return `Abstract method${method ? ` ${method}` : ""}. Must be overridden.`;
|
|
230
230
|
}
|
|
@@ -235,7 +235,7 @@ var __webpack_modules__ = {
|
|
|
235
235
|
this.message = match?.[1] ? createMessage(match[1]) : createMessage();
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
class AbstractMethodError extends
|
|
238
|
+
class AbstractMethodError extends lib_WebpackError {
|
|
239
239
|
constructor(){
|
|
240
240
|
super(new Message().message), this.name = "AbstractMethodError";
|
|
241
241
|
}
|
|
@@ -433,16 +433,6 @@ var __webpack_modules__ = {
|
|
|
433
433
|
},
|
|
434
434
|
"node:util": function(module) {
|
|
435
435
|
module.exports = require("node:util");
|
|
436
|
-
},
|
|
437
|
-
tinypool: function(module) {
|
|
438
|
-
module.exports = import("../compiled/tinypool/dist/index.js").then(function(module) {
|
|
439
|
-
return module;
|
|
440
|
-
});
|
|
441
|
-
},
|
|
442
|
-
"node:worker_threads": function(module) {
|
|
443
|
-
module.exports = import("node:worker_threads").then(function(module) {
|
|
444
|
-
return module;
|
|
445
|
-
});
|
|
446
436
|
}
|
|
447
437
|
}, __webpack_module_cache__ = {};
|
|
448
438
|
function __webpack_require__(moduleId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"directory": "packages/rspack"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ast-grep/napi": "^0.39.
|
|
40
|
+
"@ast-grep/napi": "^0.39.9",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
43
|
-
"@rslib/core": "0.
|
|
43
|
+
"@rslib/core": "0.17.1",
|
|
44
44
|
"@swc/types": "0.1.25",
|
|
45
|
-
"@types/node": "^20.19.
|
|
45
|
+
"@types/node": "^20.19.25",
|
|
46
46
|
"@types/watchpack": "^2.4.4",
|
|
47
47
|
"browserslist-load-config": "^1.0.1",
|
|
48
48
|
"enhanced-resolve": "5.18.3",
|
|
49
49
|
"glob-to-regexp": "^0.4.1",
|
|
50
50
|
"memfs": "4.48.1",
|
|
51
|
-
"prebundle": "^1.
|
|
51
|
+
"prebundle": "^1.5.0",
|
|
52
52
|
"tinypool": "^1.1.1",
|
|
53
53
|
"tsx": "^4.20.6",
|
|
54
54
|
"typescript": "^5.9.3",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"webpack-sources": "3.3.3"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@module-federation/runtime-tools": "0.21.
|
|
59
|
+
"@module-federation/runtime-tools": "0.21.4",
|
|
60
60
|
"@rspack/lite-tapable": "1.0.1",
|
|
61
|
-
"@rspack/binding": "1.6.
|
|
61
|
+
"@rspack/binding": "1.6.2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|