@rspack/browser 1.7.9 → 1.7.10
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 +21 -9
- package/dist/napi-binding.d.ts +1 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -56875,27 +56875,39 @@ function SwcJsMinimizerPlugin_isObject(value) {
|
|
|
56875
56875
|
}
|
|
56876
56876
|
function getRawExtractCommentsOptions(extractComments) {
|
|
56877
56877
|
const conditionStr = (condition)=>{
|
|
56878
|
-
if (void 0 === condition || true === condition) return
|
|
56878
|
+
if (void 0 === condition || true === condition) return {
|
|
56879
|
+
source: '@preserve|@lic|@cc_on|^\\**!',
|
|
56880
|
+
flags: ''
|
|
56881
|
+
};
|
|
56879
56882
|
if (false === condition) throw Error('unreachable');
|
|
56880
|
-
return
|
|
56883
|
+
return {
|
|
56884
|
+
source: condition.source,
|
|
56885
|
+
flags: condition.flags
|
|
56886
|
+
};
|
|
56881
56887
|
};
|
|
56882
56888
|
if ('boolean' == typeof extractComments) {
|
|
56883
56889
|
if (!extractComments) return;
|
|
56890
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56884
56891
|
const res = {
|
|
56885
|
-
condition:
|
|
56892
|
+
condition: source,
|
|
56893
|
+
conditionFlags: flags
|
|
56886
56894
|
};
|
|
56887
56895
|
return res;
|
|
56888
56896
|
}
|
|
56889
56897
|
if (extractComments instanceof RegExp) {
|
|
56898
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56890
56899
|
const res = {
|
|
56891
|
-
condition:
|
|
56900
|
+
condition: source,
|
|
56901
|
+
conditionFlags: flags
|
|
56892
56902
|
};
|
|
56893
56903
|
return res;
|
|
56894
56904
|
}
|
|
56895
56905
|
if (SwcJsMinimizerPlugin_isObject(extractComments)) {
|
|
56896
56906
|
if (false === extractComments.condition) return;
|
|
56907
|
+
const { source, flags } = conditionStr(extractComments.condition);
|
|
56897
56908
|
const res = {
|
|
56898
|
-
condition:
|
|
56909
|
+
condition: source,
|
|
56910
|
+
conditionFlags: flags,
|
|
56899
56911
|
banner: extractComments.banner
|
|
56900
56912
|
};
|
|
56901
56913
|
return res;
|
|
@@ -58153,7 +58165,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58153
58165
|
if ('object' == typeof rspackFuture) {
|
|
58154
58166
|
D(rspackFuture, 'bundlerInfo', {});
|
|
58155
58167
|
if ('object' == typeof rspackFuture.bundlerInfo) {
|
|
58156
|
-
D(rspackFuture.bundlerInfo, 'version', "1.7.
|
|
58168
|
+
D(rspackFuture.bundlerInfo, 'version', "1.7.10");
|
|
58157
58169
|
D(rspackFuture.bundlerInfo, 'bundler', 'rspack');
|
|
58158
58170
|
D(rspackFuture.bundlerInfo, 'force', !library);
|
|
58159
58171
|
}
|
|
@@ -60423,7 +60435,7 @@ class MultiStats {
|
|
|
60423
60435
|
return obj;
|
|
60424
60436
|
});
|
|
60425
60437
|
if (childOptions.version) {
|
|
60426
|
-
obj.rspackVersion = "1.7.
|
|
60438
|
+
obj.rspackVersion = "1.7.10";
|
|
60427
60439
|
obj.version = "5.75.0";
|
|
60428
60440
|
}
|
|
60429
60441
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -62263,7 +62275,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
62263
62275
|
},
|
|
62264
62276
|
version: (object)=>{
|
|
62265
62277
|
object.version = "5.75.0";
|
|
62266
|
-
object.rspackVersion = "1.7.
|
|
62278
|
+
object.rspackVersion = "1.7.10";
|
|
62267
62279
|
},
|
|
62268
62280
|
env: (object, _compilation, _context, { _env })=>{
|
|
62269
62281
|
object.env = _env;
|
|
@@ -66994,7 +67006,7 @@ function transformSync(source, options) {
|
|
|
66994
67006
|
const _options = JSON.stringify(options || {});
|
|
66995
67007
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66996
67008
|
}
|
|
66997
|
-
const exports_rspackVersion = "1.7.
|
|
67009
|
+
const exports_rspackVersion = "1.7.10";
|
|
66998
67010
|
const exports_version = "5.75.0";
|
|
66999
67011
|
const exports_WebpackError = Error;
|
|
67000
67012
|
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
|
Binary file
|
package/package.json
CHANGED