@rspack/core 0.5.8-canary-ca8afe6-20240325005559 → 0.5.8-canary-2ebf5d4-20240325102848

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.
@@ -69,11 +69,11 @@ export declare class Compilation {
69
69
  additionalAssets: any;
70
70
  optimizeModules: liteTapable.SyncBailHook<Iterable<Module>, void>;
71
71
  afterOptimizeModules: liteTapable.SyncHook<Iterable<Module>, void>;
72
- optimizeTree: tapable.AsyncSeriesBailHook<[
72
+ optimizeTree: liteTapable.AsyncSeriesHook<[
73
73
  Iterable<Chunk>,
74
74
  Iterable<Module>
75
- ], void>;
76
- optimizeChunkModules: tapable.AsyncSeriesBailHook<[
75
+ ]>;
76
+ optimizeChunkModules: liteTapable.AsyncSeriesBailHook<[
77
77
  Iterable<Chunk>,
78
78
  Iterable<Module>
79
79
  ], void>;
@@ -140,8 +140,8 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
140
140
  log: new tapable.SyncBailHook(["origin", "logEntry"]),
141
141
  optimizeModules: new liteTapable.SyncBailHook(["modules"]),
142
142
  afterOptimizeModules: new liteTapable.SyncBailHook(["modules"]),
143
- optimizeTree: new tapable.AsyncSeriesBailHook(["chunks", "modules"]),
144
- optimizeChunkModules: new tapable.AsyncSeriesBailHook([
143
+ optimizeTree: new liteTapable.AsyncSeriesHook(["chunks", "modules"]),
144
+ optimizeChunkModules: new liteTapable.AsyncSeriesBailHook([
145
145
  "chunks",
146
146
  "modules"
147
147
  ]),
package/dist/Compiler.js CHANGED
@@ -502,8 +502,6 @@ _Compiler_instance = new WeakMap(), _Compiler_disabledHooks = new WeakMap(), _Co
502
502
  const rawOptions = (0, config_1.getRawOptions)(options, this);
503
503
  const instanceBinding = require("@rspack/binding");
504
504
  __classPrivateFieldSet(this, _Compiler_instance, new instanceBinding.Rspack(rawOptions, this.builtinPlugins, {
505
- optimizeTree: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_optimizeTree).bind(this),
506
- optimizeChunkModules: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_optimizeChunkModules).bind(this),
507
505
  normalModuleFactoryCreateModule: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_normalModuleFactoryCreateModule).bind(this),
508
506
  normalModuleFactoryResolveForScheme: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_normalModuleFactoryResolveForScheme).bind(this),
509
507
  afterResolve: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_afterResolve).bind(this),
@@ -589,6 +587,8 @@ _Compiler_instance = new WeakMap(), _Compiler_disabledHooks = new WeakMap(), _Co
589
587
  registerCompilationFinishModulesTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.finishModules, queried => async () => await queried.promise(this.compilation.modules)),
590
588
  registerCompilationOptimizeModulesTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.optimizeModules, queried => () => queried.call(this.compilation.modules)),
591
589
  registerCompilationAfterOptimizeModulesTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.afterOptimizeModules, queried => () => queried.call(this.compilation.modules)),
590
+ registerCompilationOptimizeTreeTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.optimizeTree, queried => async () => await queried.promise(this.compilation.chunks, this.compilation.modules)),
591
+ registerCompilationOptimizeChunkModulesTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.optimizeChunkModules, queried => async () => await queried.promise(this.compilation.chunks, this.compilation.modules)),
592
592
  registerCompilationChunkAssetTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.chunkAsset, queried => ({ chunk, filename }) => queried.call(Chunk_1.Chunk.__from_binding(chunk, this.compilation), filename)),
593
593
  registerCompilationProcessAssetsTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.processAssets, queried => async () => await queried.promise(this.compilation.assets)),
594
594
  registerCompilationAfterProcessAssetsTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createRegisterTaps).call(this, () => this.compilation.hooks.afterProcessAssets, queried => () => queried.call(this.compilation.assets)),
@@ -611,9 +611,7 @@ _Compiler_instance = new WeakMap(), _Compiler_disabledHooks = new WeakMap(), _Co
611
611
  var _a, _b, _c, _d, _e;
612
612
  const disabledHooks = [];
613
613
  const hookMap = {
614
- optimizeTree: this.compilation.hooks.optimizeTree,
615
614
  afterResolve: (_a = this.compilationParams) === null || _a === void 0 ? void 0 : _a.normalModuleFactory.hooks.afterResolve,
616
- optimizeChunkModules: this.compilation.hooks.optimizeChunkModules,
617
615
  contextModuleFactoryBeforeResolve: (_b = this.compilationParams) === null || _b === void 0 ? void 0 : _b.contextModuleFactory.hooks.beforeResolve,
618
616
  contextModuleFactoryAfterResolve: (_c = this.compilationParams) === null || _c === void 0 ? void 0 : _c.contextModuleFactory.hooks.afterResolve,
619
617
  normalModuleFactoryCreateModule: (_d = this.compilationParams) === null || _d === void 0 ? void 0 : _d.normalModuleFactory.hooks.createModule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "0.5.8-canary-ca8afe6-20240325005559",
3
+ "version": "0.5.8-canary-2ebf5d4-20240325102848",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "A Fast Rust-based Web Bundler",
@@ -56,8 +56,8 @@
56
56
  "styled-components": "^6.0.8",
57
57
  "terser": "5.27.2",
58
58
  "wast-loader": "^1.11.4",
59
- "@rspack/core": "0.5.8-canary-ca8afe6-20240325005559",
60
- "@rspack/plugin-minify": "^0.5.8-canary-ca8afe6-20240325005559"
59
+ "@rspack/core": "0.5.8-canary-2ebf5d4-20240325102848",
60
+ "@rspack/plugin-minify": "^0.5.8-canary-2ebf5d4-20240325102848"
61
61
  },
62
62
  "dependencies": {
63
63
  "@module-federation/runtime-tools": "0.0.8",
@@ -72,7 +72,7 @@
72
72
  "webpack-sources": "3.2.3",
73
73
  "zod": "^3.21.4",
74
74
  "zod-validation-error": "1.3.1",
75
- "@rspack/binding": "0.5.8-canary-ca8afe6-20240325005559"
75
+ "@rspack/binding": "0.5.8-canary-2ebf5d4-20240325102848"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@swc/helpers": ">=0.5.1"