@ohos-ports/rspack-core 2.3.2-beta.0 → 2.3.4-beta.0
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/README.md +5 -4
- package/compiled/http-proxy-middleware/index.d.ts +2 -0
- package/compiled/http-proxy-middleware/package.json +1 -1
- package/compiled/tinypool/dist/index.js +5 -3
- package/compiled/watchpack/index.js +198 -26
- package/compiled/watchpack/package.json +1 -1
- package/compiled/webpack-sources/index.d.ts +2 -0
- package/compiled/webpack-sources/index.js +207 -94
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types/RawSource.d.ts +0 -10
- package/compiled/webpack-sources/types/helpers/sourceMap.d.ts +47 -0
- package/compiled/webpack-sources/types/index.d.ts +1 -0
- package/dist/RuntimeGlobals.d.ts +2 -1
- package/dist/RuntimeTemplate.d.ts +1 -0
- package/dist/builtin-loader/lightningcss/index.d.ts +5 -1
- package/dist/builtin-plugin/CompactHashedChunkIdsPlugin.d.ts +1 -0
- package/dist/builtin-plugin/CompactHashedModuleIdsPlugin.d.ts +1 -0
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +5 -0
- package/dist/config/adapterRuleUse.d.ts +1 -0
- package/dist/config/target.d.ts +4 -0
- package/dist/config/types.d.ts +12 -1
- package/dist/cssExtractLoader.js +1 -1
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +480 -352
- package/dist/sharing/IndependentSharedPlugin.d.ts +1 -2
- package/dist/sharing/utils.d.ts +1 -1
- package/dist/worker.js +4 -1
- package/package.json +4 -4
|
@@ -31,7 +31,6 @@ export declare class IndependentSharedPlugin {
|
|
|
31
31
|
name: string;
|
|
32
32
|
constructor(options: IndependentSharePluginOptions);
|
|
33
33
|
apply(compiler: Compiler): void;
|
|
34
|
-
private
|
|
35
|
-
private createIndependentCompilers;
|
|
34
|
+
private prepareFallbackBuilds;
|
|
36
35
|
private createIndependentCompiler;
|
|
37
36
|
}
|
package/dist/sharing/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function isRequiredVersion(str: string): boolean;
|
|
2
|
-
export declare
|
|
2
|
+
export declare function encodeName(...parts: string[]): string;
|
package/dist/worker.js
CHANGED
|
@@ -587,6 +587,9 @@ function deserializeError(error) {
|
|
|
587
587
|
return Object.assign(deserializedError, properties), shouldDeserializeAsAggregate || void 0 === errors || (deserializedError.errors = errors), deserializedError;
|
|
588
588
|
}
|
|
589
589
|
let utils_decoder = new TextDecoder();
|
|
590
|
+
function LOADER_EXECUTION(fn, context, args) {
|
|
591
|
+
return fn.apply(context, args);
|
|
592
|
+
}
|
|
590
593
|
promisify(loadLoader);
|
|
591
594
|
let utils_runSyncOrAsync = promisify(function(fn, context, args, callback) {
|
|
592
595
|
let isSync = !0, isDone = !1, isError = !1, reportedError = !1;
|
|
@@ -611,7 +614,7 @@ let utils_runSyncOrAsync = promisify(function(fn, context, args, callback) {
|
|
|
611
614
|
};
|
|
612
615
|
context.callback = innerCallback;
|
|
613
616
|
try {
|
|
614
|
-
let result = fn
|
|
617
|
+
let result = LOADER_EXECUTION(fn, context, args);
|
|
615
618
|
if (isSync) {
|
|
616
619
|
if (isDone = !0, void 0 === result) return void callback(null, []);
|
|
617
620
|
if (result && 'object' == typeof result && 'function' == typeof result.then) return void result.then((r)=>{
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/rspack-core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4-beta.0",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"description": "Fast Rust-based bundler for the web with a modernized webpack API (OpenHarmony port: uses @ohos-ports/rspack-binding with the
|
|
6
|
+
"description": "Fast Rust-based bundler for the web with a modernized webpack API (OpenHarmony port: uses @ohos-ports/rspack-binding with the openharmony arm64 native binary from upstream musl 2.3.4 prebuilt, signed)",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
38
|
-
"directory": "ports/@rspack/core/2.3.
|
|
38
|
+
"directory": "ports/@rspack/core/2.3.4"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@ohos-ports/rspack-binding": "2.3.
|
|
41
|
+
"@ohos-ports/rspack-binding": "2.3.4-beta.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
|