@rspack-canary/browser 1.6.5-canary-a27f526c-20251125032833 → 1.6.6-canary-6b712371-20251125114142
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 +42 -28
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2738,7 +2738,7 @@ var __webpack_modules__ = {
|
|
|
2738
2738
|
BN.wordSize = 26;
|
|
2739
2739
|
var Buffer;
|
|
2740
2740
|
try {
|
|
2741
|
-
Buffer = 'undefined' != typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
2741
|
+
Buffer = 'undefined' != typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?4fc0").Buffer;
|
|
2742
2742
|
} catch (e) {}
|
|
2743
2743
|
BN.isBN = function(num) {
|
|
2744
2744
|
if (num instanceof BN) return true;
|
|
@@ -5228,7 +5228,7 @@ var __webpack_modules__ = {
|
|
|
5228
5228
|
BN.wordSize = 26;
|
|
5229
5229
|
var Buffer;
|
|
5230
5230
|
try {
|
|
5231
|
-
Buffer = 'undefined' != typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
5231
|
+
Buffer = 'undefined' != typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?dcfb").Buffer;
|
|
5232
5232
|
} catch (e) {}
|
|
5233
5233
|
BN.isBN = function(num) {
|
|
5234
5234
|
if (num instanceof BN) return true;
|
|
@@ -7776,7 +7776,7 @@ var __webpack_modules__ = {
|
|
|
7776
7776
|
throw new Error('Not implemented yet');
|
|
7777
7777
|
};
|
|
7778
7778
|
} else try {
|
|
7779
|
-
var crypto = __webpack_require__("?
|
|
7779
|
+
var crypto = __webpack_require__("?69f8");
|
|
7780
7780
|
if ('function' != typeof crypto.randomBytes) throw new Error('Not supported');
|
|
7781
7781
|
Rand.prototype._rand = function(n) {
|
|
7782
7782
|
return crypto.randomBytes(n);
|
|
@@ -18975,7 +18975,7 @@ var __webpack_modules__ = {
|
|
|
18975
18975
|
}
|
|
18976
18976
|
return $replace.call(str, sepRegex, '$&_');
|
|
18977
18977
|
}
|
|
18978
|
-
var utilInspect = __webpack_require__("?
|
|
18978
|
+
var utilInspect = __webpack_require__("?f42a");
|
|
18979
18979
|
var inspectCustom = utilInspect.custom;
|
|
18980
18980
|
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
18981
18981
|
var quotes = {
|
|
@@ -24912,7 +24912,7 @@ var __webpack_modules__ = {
|
|
|
24912
24912
|
}
|
|
24913
24913
|
var util = Object.create(__webpack_require__("../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js"));
|
|
24914
24914
|
util.inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
24915
|
-
var debugUtil = __webpack_require__("?
|
|
24915
|
+
var debugUtil = __webpack_require__("?b05f");
|
|
24916
24916
|
var debug = void 0;
|
|
24917
24917
|
debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
|
|
24918
24918
|
var BufferList = __webpack_require__("../../node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/BufferList.js");
|
|
@@ -26032,7 +26032,7 @@ var __webpack_modules__ = {
|
|
|
26032
26032
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26033
26033
|
}
|
|
26034
26034
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js").Buffer;
|
|
26035
|
-
var util = __webpack_require__("?
|
|
26035
|
+
var util = __webpack_require__("?5f4e");
|
|
26036
26036
|
function copyBuffer(src, target, offset) {
|
|
26037
26037
|
src.copy(target, offset);
|
|
26038
26038
|
}
|
|
@@ -26348,7 +26348,7 @@ var __webpack_modules__ = {
|
|
|
26348
26348
|
function _isUint8Array(obj) {
|
|
26349
26349
|
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
26350
26350
|
}
|
|
26351
|
-
var debugUtil = __webpack_require__("?
|
|
26351
|
+
var debugUtil = __webpack_require__("?8beb");
|
|
26352
26352
|
var debug;
|
|
26353
26353
|
debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
|
|
26354
26354
|
var BufferList = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js");
|
|
@@ -27725,7 +27725,7 @@ var __webpack_modules__ = {
|
|
|
27725
27725
|
return ("string" === hint ? String : Number)(input);
|
|
27726
27726
|
}
|
|
27727
27727
|
var _require = __webpack_require__("./src/browser/buffer.ts"), Buffer = _require.Buffer;
|
|
27728
|
-
var _require2 = __webpack_require__("?
|
|
27728
|
+
var _require2 = __webpack_require__("?c028"), inspect = _require2.inspect;
|
|
27729
27729
|
var custom = inspect && inspect.custom || 'inspect';
|
|
27730
27730
|
function copyBuffer(src, target, offset) {
|
|
27731
27731
|
Buffer.prototype.copy.call(src, target, offset);
|
|
@@ -35341,14 +35341,14 @@ var __webpack_modules__ = {
|
|
|
35341
35341
|
"@rspack/binding": function(module1) {
|
|
35342
35342
|
module1.exports = __WEBPACK_EXTERNAL_MODULE__rspack_wasi_browser_js_bd433424__;
|
|
35343
35343
|
},
|
|
35344
|
-
"?
|
|
35345
|
-
"?
|
|
35346
|
-
"?
|
|
35347
|
-
"?
|
|
35348
|
-
"?
|
|
35349
|
-
"?
|
|
35350
|
-
"?
|
|
35351
|
-
"?
|
|
35344
|
+
"?4fc0": function() {},
|
|
35345
|
+
"?dcfb": function() {},
|
|
35346
|
+
"?69f8": function() {},
|
|
35347
|
+
"?f42a": function() {},
|
|
35348
|
+
"?5f4e": function() {},
|
|
35349
|
+
"?b05f": function() {},
|
|
35350
|
+
"?c028": function() {},
|
|
35351
|
+
"?8beb": function() {},
|
|
35352
35352
|
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
|
|
35353
35353
|
var possibleNames = __webpack_require__("../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js");
|
|
35354
35354
|
var g = 'undefined' == typeof globalThis ? __webpack_require__.g : globalThis;
|
|
@@ -56766,6 +56766,7 @@ function SubresourceIntegrityPlugin_define_property(obj, key, value) {
|
|
|
56766
56766
|
}
|
|
56767
56767
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = "SubresourceIntegrityPlugin";
|
|
56768
56768
|
const NATIVE_HTML_PLUGIN = "HtmlRspackPlugin";
|
|
56769
|
+
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
56769
56770
|
const NativeSubresourceIntegrityPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
56770
56771
|
let htmlPlugin = "Disabled";
|
|
56771
56772
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = "Native";
|
|
@@ -56803,11 +56804,25 @@ class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
|
|
|
56803
56804
|
if (tag.attributes && "integrity" in tag.attributes) return;
|
|
56804
56805
|
const tagSrc = getTagSrc(tag);
|
|
56805
56806
|
if (!tagSrc) return;
|
|
56807
|
+
let isUrlSrc = false;
|
|
56806
56808
|
try {
|
|
56807
56809
|
const url = new URL(tagSrc);
|
|
56808
|
-
|
|
56809
|
-
} catch (_) {
|
|
56810
|
-
|
|
56810
|
+
isUrlSrc = "http:" === url.protocol || "https:" === url.protocol;
|
|
56811
|
+
} catch (_) {
|
|
56812
|
+
isUrlSrc = tagSrc.startsWith("//");
|
|
56813
|
+
}
|
|
56814
|
+
let src = "";
|
|
56815
|
+
if (isUrlSrc) {
|
|
56816
|
+
if (!publicPath) return;
|
|
56817
|
+
const protocolRelativePublicPath = publicPath.replace(HTTP_PROTOCOL_REGEX, "");
|
|
56818
|
+
const protocolRelativeTagSrc = tagSrc.replace(HTTP_PROTOCOL_REGEX, "");
|
|
56819
|
+
if (!protocolRelativeTagSrc.startsWith(protocolRelativePublicPath)) return;
|
|
56820
|
+
{
|
|
56821
|
+
const tagSrcWithScheme = `http:${protocolRelativeTagSrc}`;
|
|
56822
|
+
const publicPathWithScheme = protocolRelativePublicPath.startsWith("//") ? `http:${protocolRelativePublicPath}` : protocolRelativePublicPath;
|
|
56823
|
+
src = (0, path_browserify.relative)(publicPathWithScheme, decodeURIComponent(tagSrcWithScheme));
|
|
56824
|
+
}
|
|
56825
|
+
} else src = (0, path_browserify.relative)(publicPath, decodeURIComponent(tagSrc));
|
|
56811
56826
|
tag.attributes.integrity = this.getIntegrityChecksumForAsset(src) || computeIntegrity(this.options.hashFuncNames, (0, browser_fs.readFileSync)((0, path_browserify.join)(outputPath, src)));
|
|
56812
56827
|
tag.attributes.crossorigin = crossOriginLoading || "anonymous";
|
|
56813
56828
|
}
|
|
@@ -58141,7 +58156,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58141
58156
|
if ("object" == typeof rspackFuture) {
|
|
58142
58157
|
D(rspackFuture, "bundlerInfo", {});
|
|
58143
58158
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
58144
|
-
D(rspackFuture.bundlerInfo, "version", "1.6.
|
|
58159
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.6-canary-6b712371-20251125114142");
|
|
58145
58160
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58146
58161
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58147
58162
|
}
|
|
@@ -62090,7 +62105,7 @@ class MultiStats {
|
|
|
62090
62105
|
return obj;
|
|
62091
62106
|
});
|
|
62092
62107
|
if (childOptions.version) {
|
|
62093
|
-
obj.rspackVersion = "1.6.
|
|
62108
|
+
obj.rspackVersion = "1.6.6-canary-6b712371-20251125114142";
|
|
62094
62109
|
obj.version = "5.75.0";
|
|
62095
62110
|
}
|
|
62096
62111
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63395,7 +63410,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63395
63410
|
},
|
|
63396
63411
|
version: (object)=>{
|
|
63397
63412
|
object.version = "5.75.0";
|
|
63398
|
-
object.rspackVersion = "1.6.
|
|
63413
|
+
object.rspackVersion = "1.6.6-canary-6b712371-20251125114142";
|
|
63399
63414
|
},
|
|
63400
63415
|
env: (object, _compilation, _context, { _env })=>{
|
|
63401
63416
|
object.env = _env;
|
|
@@ -66274,11 +66289,10 @@ class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
|
66274
66289
|
name: "CollectSharedEntry",
|
|
66275
66290
|
stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE
|
|
66276
66291
|
}, async ()=>{
|
|
66277
|
-
|
|
66278
|
-
|
|
66279
|
-
|
|
66280
|
-
|
|
66281
|
-
compilation.deleteAsset(filename);
|
|
66292
|
+
compilation.getAssets().forEach((asset)=>{
|
|
66293
|
+
if (asset.name === SHARE_ENTRY_ASSET) this._collectedEntries = JSON.parse(asset.source.source().toString());
|
|
66294
|
+
compilation.deleteAsset(asset.name);
|
|
66295
|
+
});
|
|
66282
66296
|
});
|
|
66283
66297
|
});
|
|
66284
66298
|
}
|
|
@@ -67042,7 +67056,7 @@ function transformSync(source, options) {
|
|
|
67042
67056
|
const _options = JSON.stringify(options || {});
|
|
67043
67057
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
67044
67058
|
}
|
|
67045
|
-
const exports_rspackVersion = "1.6.
|
|
67059
|
+
const exports_rspackVersion = "1.6.6-canary-6b712371-20251125114142";
|
|
67046
67060
|
const exports_version = "5.75.0";
|
|
67047
67061
|
const exports_WebpackError = Error;
|
|
67048
67062
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6-canary-6b712371-20251125114142",
|
|
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.",
|