@rspack-canary/core 1.6.4-canary-dceb4c75-20251116173406 → 1.6.5-canary-aa49744b-20251119174225

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.
@@ -14,6 +14,7 @@ export declare const RuntimePluginImpl: {
14
14
  };
15
15
  export type RuntimePluginHooks = {
16
16
  createScript: liteTapable.SyncWaterfallHook<[string, Chunk]>;
17
+ createLink: liteTapable.SyncWaterfallHook<[string, Chunk]>;
17
18
  linkPreload: liteTapable.SyncWaterfallHook<[string, Chunk]>;
18
19
  linkPrefetch: liteTapable.SyncWaterfallHook<[string, Chunk]>;
19
20
  };
@@ -7,10 +7,10 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
9
9
  */
10
- import type http from "http";
11
- import type net from "net";
12
- import type stream from "stream";
13
- import type url from "url";
10
+ import type * as http from "node:http";
11
+ import type * as net from "node:net";
12
+ import type * as stream from "node:stream";
13
+ import type * as url from "node:url";
14
14
  import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from "..";
15
15
  type Logger = ReturnType<Compiler["getInfrastructureLogger"]>;
16
16
  type MultiWatching = MultiCompiler["watch"];
package/dist/index.js CHANGED
@@ -4555,6 +4555,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4555
4555
  "code",
4556
4556
  "chunk"
4557
4557
  ]),
4558
+ createLink: new lite_tapable_namespaceObject.SyncWaterfallHook([
4559
+ "code",
4560
+ "chunk"
4561
+ ]),
4558
4562
  linkPreload: new lite_tapable_namespaceObject.SyncWaterfallHook([
4559
4563
  "code",
4560
4564
  "chunk"
@@ -5732,7 +5736,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5732
5736
  }, applyExperimentsDefaults = (experiments, { development })=>{
5733
5737
  F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
5734
5738
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
5735
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.4-canary-dceb4c75-20251116173406"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5739
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.5-canary-aa49744b-20251119174225"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5736
5740
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
5737
5741
  if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
5738
5742
  D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
@@ -7382,7 +7386,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7382
7386
  });
7383
7387
  }
7384
7388
  }
7385
- let CORE_VERSION = "1.6.4-canary-dceb4c75-20251116173406", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7389
+ let CORE_VERSION = "1.6.5-canary-aa49744b-20251119174225", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7386
7390
 
7387
7391
  Help:
7388
7392
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -8498,6 +8502,13 @@ Help:
8498
8502
  return queried.call(data.code, data.chunk);
8499
8503
  };
8500
8504
  }),
8505
+ registerRuntimePluginCreateLinkTaps: createTap5(binding_default().RegisterJsTapKind.RuntimePluginCreateLink, function() {
8506
+ return RuntimePlugin.getCompilationHooks(getCompiler6().__internal__get_compilation()).createLink;
8507
+ }, function(queried) {
8508
+ return function(data) {
8509
+ return queried.call(data.code, data.chunk);
8510
+ };
8511
+ }),
8501
8512
  registerRuntimePluginLinkPreloadTaps: createTap5(binding_default().RegisterJsTapKind.RuntimePluginLinkPreload, function() {
8502
8513
  return RuntimePlugin.getCompilationHooks(getCompiler6().__internal__get_compilation()).linkPreload;
8503
8514
  }, function(queried) {
@@ -8675,7 +8686,7 @@ Help:
8675
8686
  obj.children = this.stats.map((stat, idx)=>{
8676
8687
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8677
8688
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8678
- }), childOptions.version && (obj.rspackVersion = "1.6.4-canary-dceb4c75-20251116173406", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8689
+ }), childOptions.version && (obj.rspackVersion = "1.6.5-canary-aa49744b-20251119174225", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8679
8690
  let mapError = (j, obj)=>({
8680
8691
  ...obj,
8681
8692
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9574,7 +9585,7 @@ Help:
9574
9585
  object.hash = context.getStatsCompilation(compilation).hash;
9575
9586
  },
9576
9587
  version: (object)=>{
9577
- object.version = "5.75.0", object.rspackVersion = "1.6.4-canary-dceb4c75-20251116173406";
9588
+ object.version = "5.75.0", object.rspackVersion = "1.6.5-canary-aa49744b-20251119174225";
9578
9589
  },
9579
9590
  env: (object, _compilation, _context, { _env })=>{
9580
9591
  object.env = _env;
@@ -11793,7 +11804,7 @@ Help:
11793
11804
  let _options = JSON.stringify(options || {});
11794
11805
  return binding_default().transform(source, _options);
11795
11806
  }
11796
- let exports_rspackVersion = "1.6.4-canary-dceb4c75-20251116173406", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11807
+ let exports_rspackVersion = "1.6.5-canary-aa49744b-20251119174225", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11797
11808
  getNormalizedRspackOptions: getNormalizedRspackOptions,
11798
11809
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
11799
11810
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/core",
3
- "version": "1.6.4-canary-dceb4c75-20251116173406",
3
+ "version": "1.6.5-canary-aa49744b-20251119174225",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@module-federation/runtime-tools": "0.21.4",
60
60
  "@rspack/lite-tapable": "1.1.0",
61
- "@rspack/binding": "npm:@rspack-canary/binding@1.6.4-canary-dceb4c75-20251116173406"
61
+ "@rspack/binding": "npm:@rspack-canary/binding@1.6.5-canary-aa49744b-20251119174225"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@swc/helpers": ">=0.5.1"