@rspack-canary/browser 1.4.12-canary-1a94ade3-20250814141828 → 1.4.12-canary-681a414e-20250817002321
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 +16 -22
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +4 -4
- package/package.json +3 -6
package/dist/index.mjs
CHANGED
|
@@ -35104,25 +35104,19 @@ var __webpack_modules__ = {
|
|
|
35104
35104
|
node_fs__WEBPACK_IMPORTED_MODULE_0__["default"].readFile(loaderPath, {}, (err, data)=>{
|
|
35105
35105
|
if (err) return void reject(err);
|
|
35106
35106
|
const loaderCode = (null == data ? void 0 : data.toString()) || "";
|
|
35107
|
+
const codeUrl = URL.createObjectURL(new Blob([
|
|
35108
|
+
loaderCode
|
|
35109
|
+
], {
|
|
35110
|
+
type: "text/javascript"
|
|
35111
|
+
}));
|
|
35107
35112
|
try {
|
|
35108
|
-
const
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
-
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35115
|
-
const wrapper = new Function("module", "exports", "require", loaderCode);
|
|
35116
|
-
wrapper(module, exports, createRequire);
|
|
35117
|
-
resolve(module.exports);
|
|
35118
|
-
} catch {
|
|
35119
|
-
const dataUrl = `data:text/javascript;base64,${btoa(loaderCode)}`;
|
|
35120
|
-
try {
|
|
35121
|
-
const modulePromise = eval(`import("${dataUrl}")`);
|
|
35122
|
-
modulePromise.then(resolve);
|
|
35123
|
-
} catch (e) {
|
|
35124
|
-
reject(e);
|
|
35125
|
-
}
|
|
35113
|
+
const modulePromise = eval(`import("${codeUrl}")`);
|
|
35114
|
+
modulePromise.then((module)=>{
|
|
35115
|
+
URL.revokeObjectURL(codeUrl);
|
|
35116
|
+
resolve(module);
|
|
35117
|
+
});
|
|
35118
|
+
} catch (e) {
|
|
35119
|
+
reject(e);
|
|
35126
35120
|
}
|
|
35127
35121
|
});
|
|
35128
35122
|
}).catch((err)=>reject(err));
|
|
@@ -47110,7 +47104,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47110
47104
|
if ("object" == typeof rspackFuture) {
|
|
47111
47105
|
D(rspackFuture, "bundlerInfo", {});
|
|
47112
47106
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47113
|
-
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-
|
|
47107
|
+
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-681a414e-20250817002321");
|
|
47114
47108
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47115
47109
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47116
47110
|
}
|
|
@@ -51195,7 +51189,7 @@ class MultiStats {
|
|
|
51195
51189
|
return obj;
|
|
51196
51190
|
});
|
|
51197
51191
|
if (childOptions.version) {
|
|
51198
|
-
obj.rspackVersion = "1.4.12-canary-
|
|
51192
|
+
obj.rspackVersion = "1.4.12-canary-681a414e-20250817002321";
|
|
51199
51193
|
obj.version = "5.75.0";
|
|
51200
51194
|
}
|
|
51201
51195
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52505,7 +52499,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52505
52499
|
},
|
|
52506
52500
|
version: (object)=>{
|
|
52507
52501
|
object.version = "5.75.0";
|
|
52508
|
-
object.rspackVersion = "1.4.12-canary-
|
|
52502
|
+
object.rspackVersion = "1.4.12-canary-681a414e-20250817002321";
|
|
52509
52503
|
},
|
|
52510
52504
|
env: (object, _compilation, _context, { _env })=>{
|
|
52511
52505
|
object.env = _env;
|
|
@@ -56967,7 +56961,7 @@ function transformSync(source, options) {
|
|
|
56967
56961
|
const _options = JSON.stringify(options || {});
|
|
56968
56962
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56969
56963
|
}
|
|
56970
|
-
const exports_rspackVersion = "1.4.12-canary-
|
|
56964
|
+
const exports_rspackVersion = "1.4.12-canary-681a414e-20250817002321";
|
|
56971
56965
|
const exports_version = "5.75.0";
|
|
56972
56966
|
const exports_WebpackError = Error;
|
|
56973
56967
|
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/dist/schema/config.d.ts
CHANGED
|
@@ -36,9 +36,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
36
36
|
baseUri: z.ZodOptional<z.ZodString>;
|
|
37
37
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
|
38
38
|
import: "import";
|
|
39
|
-
require: "require";
|
|
40
39
|
jsonp: "jsonp";
|
|
41
40
|
"import-scripts": "import-scripts";
|
|
41
|
+
require: "require";
|
|
42
42
|
"async-node": "async-node";
|
|
43
43
|
}>, z.ZodString]>]>>;
|
|
44
44
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -218,16 +218,16 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
218
218
|
chunkFormat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
|
219
219
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
|
220
220
|
import: "import";
|
|
221
|
-
require: "require";
|
|
222
221
|
jsonp: "jsonp";
|
|
223
222
|
"import-scripts": "import-scripts";
|
|
223
|
+
require: "require";
|
|
224
224
|
"async-node": "async-node";
|
|
225
225
|
}>, z.ZodString]>]>>;
|
|
226
226
|
enabledChunkLoadingTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<{
|
|
227
227
|
import: "import";
|
|
228
|
-
require: "require";
|
|
229
228
|
jsonp: "jsonp";
|
|
230
229
|
"import-scripts": "import-scripts";
|
|
230
|
+
require: "require";
|
|
231
231
|
"async-node": "async-node";
|
|
232
232
|
}>, z.ZodString]>>>;
|
|
233
233
|
trustedTypes: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<true>, z.ZodString]>, z.ZodObject<{
|
|
@@ -249,9 +249,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
249
249
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
|
250
250
|
workerChunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
|
251
251
|
import: "import";
|
|
252
|
-
require: "require";
|
|
253
252
|
jsonp: "jsonp";
|
|
254
253
|
"import-scripts": "import-scripts";
|
|
254
|
+
require: "require";
|
|
255
255
|
"async-node": "async-node";
|
|
256
256
|
}>, z.ZodString]>]>>;
|
|
257
257
|
workerWasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.4.12-canary-
|
|
3
|
+
"version": "1.4.12-canary-681a414e-20250817002321",
|
|
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.",
|
|
@@ -30,14 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@napi-rs/wasm-runtime": "^1.0.1",
|
|
33
|
-
"@rspack/lite-tapable": "1.0.1"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
33
|
+
"@rspack/lite-tapable": "1.0.1",
|
|
36
34
|
"@swc/types": "0.1.23",
|
|
37
35
|
"@types/watchpack": "^2.4.4",
|
|
38
36
|
"memfs": "4.36.0",
|
|
39
|
-
"webpack-sources": "3.3.3"
|
|
40
|
-
"zod": "^3.25.76"
|
|
37
|
+
"webpack-sources": "3.3.3"
|
|
41
38
|
},
|
|
42
39
|
"peerDependencies": {
|
|
43
40
|
"@swc/helpers": ">=0.5.1"
|