@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.
@@ -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 prepareBuildAssets;
35
- private createIndependentCompilers;
34
+ private prepareFallbackBuilds;
36
35
  private createIndependentCompiler;
37
36
  }
@@ -1,2 +1,2 @@
1
1
  export declare function isRequiredVersion(str: string): boolean;
2
- export declare const encodeName: (name: string, prefix?: string, withExt?: boolean) => string;
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.apply(context, args);
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.2-beta.0",
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 aarch64-unknown-linux-ohos native binary)",
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.2"
38
+ "directory": "ports/@rspack/core/2.3.4"
39
39
  },
40
40
  "dependencies": {
41
- "@ohos-ports/rspack-binding": "2.3.2-beta.0"
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",