@rspack-canary/core 1.7.0-canary-7f9f7f14-20251231041831 → 1.7.0-canary-b303a917-20251231130755

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.
Files changed (183) hide show
  1. package/dist/BuildInfo.d.ts +4 -4
  2. package/dist/Chunk.d.ts +3 -3
  3. package/dist/ChunkGraph.d.ts +3 -3
  4. package/dist/Chunks.d.ts +2 -2
  5. package/dist/Compilation.d.ts +40 -40
  6. package/dist/Compiler.d.ts +23 -25
  7. package/dist/ConcatenatedModule.d.ts +1 -1
  8. package/dist/ContextModule.d.ts +1 -1
  9. package/dist/ContextModuleFactory.d.ts +2 -2
  10. package/dist/Diagnostics.d.ts +2 -2
  11. package/dist/Entrypoint.d.ts +1 -1
  12. package/dist/ExecuteModulePlugin.d.ts +1 -1
  13. package/dist/ExportsInfo.d.ts +2 -2
  14. package/dist/ExternalModule.d.ts +1 -1
  15. package/dist/FileSystem.d.ts +3 -3
  16. package/dist/Module.d.ts +6 -6
  17. package/dist/ModuleGraph.d.ts +3 -3
  18. package/dist/MultiCompiler.d.ts +8 -8
  19. package/dist/MultiStats.d.ts +3 -3
  20. package/dist/MultiWatching.d.ts +3 -3
  21. package/dist/NativeWatchFileSystem.d.ts +5 -5
  22. package/dist/NormalModule.d.ts +6 -6
  23. package/dist/NormalModuleFactory.d.ts +4 -4
  24. package/dist/Resolver.d.ts +2 -2
  25. package/dist/ResolverFactory.d.ts +3 -3
  26. package/dist/RspackError.d.ts +2 -2
  27. package/dist/RuntimeGlobals.d.ts +2 -2
  28. package/dist/RuntimeModule.d.ts +4 -4
  29. package/dist/Stats.d.ts +4 -4
  30. package/dist/VirtualModulesPlugin.d.ts +1 -1
  31. package/dist/Watching.d.ts +5 -5
  32. package/dist/builtin-loader/index.d.ts +1 -1
  33. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
  34. package/dist/builtin-loader/swc/index.d.ts +5 -5
  35. package/dist/builtin-loader/swc/types.d.ts +8 -10
  36. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
  38. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
  41. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
  42. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
  44. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
  46. package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
  47. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
  51. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
  52. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
  54. package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
  55. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
  56. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
  58. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
  59. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
  60. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
  61. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
  62. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
  66. package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
  67. package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
  68. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
  70. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
  72. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
  73. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
  74. package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
  75. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
  76. package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
  77. package/dist/builtin-plugin/base.d.ts +3 -3
  78. package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
  79. package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
  80. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  81. package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
  82. package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
  83. package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
  84. package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
  85. package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
  86. package/dist/builtin-plugin/index.d.ts +88 -84
  87. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  88. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
  89. package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
  90. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
  91. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
  92. package/dist/builtin-plugin/rsc/index.d.ts +15 -0
  93. package/dist/config/adapter.d.ts +7 -7
  94. package/dist/config/adapterRuleUse.d.ts +16 -16
  95. package/dist/config/browserslistTargetHandler.d.ts +1 -1
  96. package/dist/config/defaults.d.ts +2 -11
  97. package/dist/config/devServer.d.ts +32 -32
  98. package/dist/config/index.d.ts +5 -5
  99. package/dist/config/normalization.d.ts +9 -9
  100. package/dist/config/target.d.ts +7 -7
  101. package/dist/config/types.d.ts +74 -75
  102. package/dist/container/ContainerPlugin.d.ts +4 -4
  103. package/dist/container/ContainerReferencePlugin.d.ts +4 -4
  104. package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
  105. package/dist/container/ModuleFederationPlugin.d.ts +6 -8
  106. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  107. package/dist/container/ModuleFederationRuntimePlugin.d.ts +0 -4
  108. package/dist/container/index.d.ts +4 -4
  109. package/dist/cssExtractHmr.js +19 -19
  110. package/dist/cssExtractLoader.js +16 -16
  111. package/dist/exports.d.ts +74 -76
  112. package/dist/index.d.ts +3 -3
  113. package/dist/index.js +1965 -1933
  114. package/dist/lib/AbstractMethodError.d.ts +1 -1
  115. package/dist/lib/Cache.d.ts +2 -2
  116. package/dist/lib/CacheFacade.d.ts +3 -3
  117. package/dist/lib/DllPlugin.d.ts +1 -1
  118. package/dist/lib/DllReferencePlugin.d.ts +5 -5
  119. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  120. package/dist/lib/EnvironmentPlugin.d.ts +1 -1
  121. package/dist/lib/HookWebpackError.d.ts +2 -2
  122. package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
  123. package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
  124. package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
  125. package/dist/lib/WebpackError.d.ts +3 -3
  126. package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
  127. package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
  128. package/dist/lib/cache/mergeEtags.d.ts +1 -1
  129. package/dist/loader-runner/ModuleError.d.ts +1 -1
  130. package/dist/loader-runner/index.d.ts +3 -3
  131. package/dist/loader-runner/loadLoader.d.ts +2 -2
  132. package/dist/loader-runner/service.d.ts +8 -8
  133. package/dist/loader-runner/utils.d.ts +3 -3
  134. package/dist/loader-runner/worker.d.ts +3 -3
  135. package/dist/logging/createConsoleLogger.d.ts +4 -4
  136. package/dist/moduleFederationDefaultRuntime.js +1 -1
  137. package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
  138. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  139. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  140. package/dist/node/nodeConsole.d.ts +2 -2
  141. package/dist/rspack.d.ts +6 -15
  142. package/dist/rspackOptionsApply.d.ts +1 -1
  143. package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
  144. package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
  145. package/dist/sharing/SharePlugin.d.ts +1 -1
  146. package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
  147. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
  148. package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
  149. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
  150. package/dist/stats/StatsFactory.d.ts +5 -5
  151. package/dist/stats/StatsPrinter.d.ts +3 -3
  152. package/dist/stats/statsFactoryUtils.d.ts +5 -5
  153. package/dist/swc.d.ts +2 -2
  154. package/dist/taps/compilation.d.ts +2 -2
  155. package/dist/taps/compiler.d.ts +1 -1
  156. package/dist/taps/contextModuleFactory.d.ts +1 -1
  157. package/dist/taps/index.d.ts +6 -6
  158. package/dist/taps/javascriptModules.d.ts +1 -1
  159. package/dist/taps/normalModuleFactory.d.ts +1 -1
  160. package/dist/taps/types.d.ts +3 -3
  161. package/dist/trace/index.d.ts +4 -4
  162. package/dist/trace/traceHookPlugin.d.ts +1 -1
  163. package/dist/util/SplitChunkSize.d.ts +1 -1
  164. package/dist/util/createHash.d.ts +1 -1
  165. package/dist/util/createReadonlyMap.d.ts +1 -1
  166. package/dist/util/fs.d.ts +14 -14
  167. package/dist/util/hash/wasm-hash.d.ts +1 -1
  168. package/dist/util/identifier.d.ts +1 -1
  169. package/dist/util/index.d.ts +1 -2
  170. package/dist/util/source.d.ts +2 -2
  171. package/dist/util/validateConfig.d.ts +1 -1
  172. package/dist/worker.js +111 -111
  173. package/hot/dev-server.js +64 -64
  174. package/hot/emitter.js +11 -11
  175. package/hot/lazy-compilation-node.js +41 -41
  176. package/hot/lazy-compilation-web.js +52 -52
  177. package/hot/log-apply-result.js +36 -36
  178. package/hot/log.js +30 -30
  179. package/hot/only-dev-server.js +92 -92
  180. package/hot/poll.js +31 -31
  181. package/hot/signal.js +53 -53
  182. package/module.d.ts +215 -215
  183. package/package.json +4 -4
@@ -16,19 +16,19 @@ var __webpack_exports__ = {};
16
16
  function normalizeUrl(url) {
17
17
  let urlString = url.trim();
18
18
  if (/^data:/i.test(urlString)) return urlString;
19
- let protocol = -1 !== urlString.indexOf('//') ? `${urlString.split('//')[0]}//` : '', components = urlString.replace(RegExp(protocol, 'i'), '').split('/'), host = components[0].toLowerCase().replace(/\.$/, '');
20
- return components[0] = '', protocol + host + components.reduce((accumulator, item)=>{
19
+ let protocol = -1 !== urlString.indexOf("//") ? `${urlString.split("//")[0]}//` : "", components = urlString.replace(RegExp(protocol, "i"), "").split("/"), host = components[0].toLowerCase().replace(/\.$/, "");
20
+ return components[0] = "", protocol + host + components.reduce((accumulator, item)=>{
21
21
  switch(item){
22
- case '..':
22
+ case "..":
23
23
  accumulator.pop();
24
24
  break;
25
- case '.':
25
+ case ".":
26
26
  break;
27
27
  default:
28
28
  accumulator.push(item);
29
29
  }
30
30
  return accumulator;
31
- }, []).join('/');
31
+ }, []).join("/");
32
32
  }
33
33
  __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
34
34
  cssReload: ()=>cssReload,
@@ -40,23 +40,23 @@ function updateCss(el, url) {
40
40
  let normalizedUrl;
41
41
  if (url) normalizedUrl = url;
42
42
  else {
43
- let href = el.getAttribute('href');
43
+ let href = el.getAttribute("href");
44
44
  if (!href) return;
45
- normalizedUrl = href.split('?')[0];
45
+ normalizedUrl = href.split("?")[0];
46
46
  }
47
- if (!isUrlRequest(el.href) || !1 === el.isLoaded || !normalizedUrl || !(normalizedUrl.indexOf('.css') > -1)) return;
47
+ if (!isUrlRequest(el.href) || !1 === el.isLoaded || !normalizedUrl || !(normalizedUrl.indexOf(".css") > -1)) return;
48
48
  el.visited = !0;
49
49
  let newEl = el.cloneNode();
50
- newEl.isLoaded = !1, newEl.addEventListener('load', ()=>{
50
+ newEl.isLoaded = !1, newEl.addEventListener("load", ()=>{
51
51
  !newEl.isLoaded && (newEl.isLoaded = !0, el.parentNode && el.parentNode.removeChild(el));
52
- }), newEl.addEventListener('error', ()=>{
52
+ }), newEl.addEventListener("error", ()=>{
53
53
  !newEl.isLoaded && (newEl.isLoaded = !0, el.parentNode && el.parentNode.removeChild(el));
54
54
  }), newEl.href = `${normalizedUrl}?${Date.now()}`;
55
55
  let parent = el.parentNode;
56
56
  parent && (el.nextSibling ? parent.insertBefore(newEl, el.nextSibling) : parent.appendChild(newEl));
57
57
  }
58
58
  function reloadAll() {
59
- let elements = document.querySelectorAll('link');
59
+ let elements = document.querySelectorAll("link");
60
60
  forEach.call(elements, (el)=>{
61
61
  !0 !== el.visited && updateCss(el);
62
62
  });
@@ -67,7 +67,7 @@ function isUrlRequest(url) {
67
67
  function cssReload(moduleId, options) {
68
68
  var fn;
69
69
  let timeout;
70
- if (noDocument) return console.log('[HMR] No `window.document` found, CSS HMR disabled'), noop;
70
+ if (noDocument) return console.log("[HMR] No `window.document` found, CSS HMR disabled"), noop;
71
71
  let getScriptSrc = function(moduleId) {
72
72
  let src = srcByModuleId[moduleId];
73
73
  if (!src) {
@@ -81,33 +81,33 @@ function cssReload(moduleId, options) {
81
81
  return (fileMap)=>{
82
82
  if (!src) return null;
83
83
  let splitResult = src.match(/([^\\/]+)\.js$/), filename = splitResult && splitResult[1];
84
- return filename && fileMap ? fileMap.split(',').map((mapRule)=>{
85
- let reg = RegExp(`${filename}\\.js$`, 'g');
84
+ return filename && fileMap ? fileMap.split(",").map((mapRule)=>{
85
+ let reg = RegExp(`${filename}\\.js$`, "g");
86
86
  return normalizeUrl(src.replace(reg, `${mapRule.replace(/{fileName}/g, filename)}.css`));
87
87
  }) : [
88
- src.replace('.js', '.css')
88
+ src.replace(".js", ".css")
89
89
  ];
90
90
  };
91
91
  }(moduleId);
92
92
  return fn = function() {
93
93
  let src = getScriptSrc(options.filename), reloaded = function(src) {
94
94
  if (!src) return !1;
95
- let elements = document.querySelectorAll('link'), loaded = !1;
95
+ let elements = document.querySelectorAll("link"), loaded = !1;
96
96
  return forEach.call(elements, (el)=>{
97
97
  var href;
98
98
  let ret, normalizedHref;
99
99
  if (!el.href) return;
100
- let url = (href = el.href, ret = '', normalizedHref = normalizeUrl(href), src.some((url)=>{
100
+ let url = (href = el.href, ret = "", normalizedHref = normalizeUrl(href), src.some((url)=>{
101
101
  normalizedHref.indexOf(src) > -1 && (ret = url);
102
102
  }), ret);
103
103
  !isUrlRequest(url) || !0 !== el.visited && url && (updateCss(el, url), loaded = !0);
104
104
  }), loaded;
105
105
  }(src);
106
106
  if (options.locals) {
107
- console.log('[HMR] Detected local CSS Modules. Reload all CSS'), reloadAll();
107
+ console.log("[HMR] Detected local CSS Modules. Reload all CSS"), reloadAll();
108
108
  return;
109
109
  }
110
- reloaded ? console.log('[HMR] CSS reload %s', src && src.join(' ')) : (console.log('[HMR] Reload all CSS'), reloadAll());
110
+ reloaded ? console.log("[HMR] CSS reload %s", src && src.join(" ")) : (console.log("[HMR] Reload all CSS"), reloadAll());
111
111
  }, timeout = 0, function(...args) {
112
112
  let self = this;
113
113
  clearTimeout(timeout), timeout = setTimeout(function() {
@@ -33,7 +33,7 @@ var external_node_path_default = __webpack_require__.n(external_node_path_namesp
33
33
  function isAbsolutePath(str) {
34
34
  return external_node_path_default().posix.isAbsolute(str) || external_node_path_default().win32.isAbsolute(str);
35
35
  }
36
- const PLUGIN_NAME = 'css-extract-rspack-plugin', RELATIVE_PATH_REGEXP = /^\.\.?[/\\]/, BASE_URI = 'rspack-css-extract://', MODULE_TYPE = 'css/mini-extract', AUTO_PUBLIC_PATH = '__css_extract_public_path_auto__', ABSOLUTE_PUBLIC_PATH = `${BASE_URI}/css-extract-plugin/`, SINGLE_DOT_PATH_SEGMENT = '__css_extract_single_dot_path_segment__';
36
+ const PLUGIN_NAME = "css-extract-rspack-plugin", RELATIVE_PATH_REGEXP = /^\.\.?[/\\]/, BASE_URI = "rspack-css-extract://", MODULE_TYPE = "css/mini-extract", AUTO_PUBLIC_PATH = "__css_extract_public_path_auto__", ABSOLUTE_PUBLIC_PATH = `${BASE_URI}/css-extract-plugin/`, SINGLE_DOT_PATH_SEGMENT = "__css_extract_single_dot_path_segment__";
37
37
  function hotLoader(content, context) {
38
38
  let localsJsonString = JSON.stringify(JSON.stringify(context.locals));
39
39
  return `${content}
@@ -42,18 +42,18 @@ function hotLoader(content, context) {
42
42
  var localsJsonString = ${localsJsonString};
43
43
  // ${Date.now()}
44
44
  var cssReload = require(${function(loaderContext, request) {
45
- if (void 0 !== loaderContext.utils && 'function' == typeof loaderContext.utils.contextify) return JSON.stringify(loaderContext.utils.contextify(loaderContext.context || loaderContext.rootContext, request));
46
- let splitted = request.split('!'), { context } = loaderContext;
45
+ if (void 0 !== loaderContext.utils && "function" == typeof loaderContext.utils.contextify) return JSON.stringify(loaderContext.utils.contextify(loaderContext.context || loaderContext.rootContext, request));
46
+ let splitted = request.split("!"), { context } = loaderContext;
47
47
  return JSON.stringify(splitted.map((part)=>{
48
- let splittedPart = part.match(/^(.*?)(\?.*)/), query = splittedPart ? splittedPart[2] : '', singlePath = splittedPart ? splittedPart[1] : part;
48
+ let splittedPart = part.match(/^(.*?)(\?.*)/), query = splittedPart ? splittedPart[2] : "", singlePath = splittedPart ? splittedPart[1] : part;
49
49
  if (isAbsolutePath(singlePath) && context) {
50
50
  var str;
51
51
  if (isAbsolutePath(singlePath = external_node_path_default().relative(context, singlePath))) return singlePath + query;
52
52
  str = singlePath, RELATIVE_PATH_REGEXP.test(str) || (singlePath = `./${singlePath}`);
53
53
  }
54
- return singlePath.replace(/\\/g, '/') + query;
55
- }).join('!'));
56
- }(context.loaderContext, external_node_path_default().join(__dirname, 'cssExtractHmr.js'))}).cssReload(module.id, ${JSON.stringify(context.options ?? {})});
54
+ return singlePath.replace(/\\/g, "/") + query;
55
+ }).join("!"));
56
+ }(context.loaderContext, external_node_path_default().join(__dirname, "cssExtractHmr.js"))}).cssReload(module.id, ${JSON.stringify(context.options ?? {})});
57
57
  // only invalidate when locals change
58
58
  if (
59
59
  module.hot.data &&
@@ -74,7 +74,7 @@ function hotLoader(content, context) {
74
74
  }
75
75
  const pitch = function(request, _, data) {
76
76
  let publicPathForExtract;
77
- if (this._compiler?.options?.experiments?.css && this._module && ('css' === this._module.type || 'css/auto' === this._module.type || 'css/global' === this._module.type || 'css/module' === this._module.type)) {
77
+ if (this._compiler?.options?.experiments?.css && this._module && ("css" === this._module.type || "css/auto" === this._module.type || "css/global" === this._module.type || "css/module" === this._module.type)) {
78
78
  let e = Error("use type 'css' and `CssExtractRspackPlugin` together, please set `experiments.css` to `false` or set `{ type: \"javascript/auto\" }` for rules with `CssExtractRspackPlugin` in your rspack config (now `CssExtractRspackPlugin` does nothing).");
79
79
  e.stack = void 0, this.emitWarning(e);
80
80
  return;
@@ -82,12 +82,12 @@ const pitch = function(request, _, data) {
82
82
  let options = this.getOptions(), emit = void 0 === options.emit || options.emit, callback = this.async(), filepath = this.resourcePath;
83
83
  this.addDependency(filepath);
84
84
  let { publicPath } = this._compilation.outputOptions;
85
- 'string' == typeof options.publicPath ? publicPath = options.publicPath : 'function' == typeof options.publicPath && (publicPath = options.publicPath(this.resourcePath, this.rootContext)), 'auto' === publicPath && (publicPath = AUTO_PUBLIC_PATH), publicPathForExtract = 'string' == typeof publicPath ? /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath) ? publicPath : `${ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, SINGLE_DOT_PATH_SEGMENT)}` : publicPath;
85
+ "string" == typeof options.publicPath ? publicPath = options.publicPath : "function" == typeof options.publicPath && (publicPath = options.publicPath(this.resourcePath, this.rootContext)), "auto" === publicPath && (publicPath = AUTO_PUBLIC_PATH), publicPathForExtract = "string" == typeof publicPath ? /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath) ? publicPath : `${ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, SINGLE_DOT_PATH_SEGMENT)}` : publicPath;
86
86
  let handleExports = (originalExports)=>{
87
87
  let locals, namedExport, esModule = void 0 === options.esModule || options.esModule, dependencies = [];
88
88
  try {
89
89
  let exports1 = originalExports.__esModule ? originalExports.default : originalExports;
90
- if (namedExport = originalExports.__esModule && (!originalExports.default || !('locals' in originalExports.default))) for (let key of Object.keys(originalExports))'default' !== key && (locals || (locals = {}), locals[key] = originalExports[key]);
90
+ if (namedExport = originalExports.__esModule && (!originalExports.default || !("locals" in originalExports.default))) for (let key of Object.keys(originalExports))"default" !== key && (locals || (locals = {}), locals[key] = originalExports[key]);
91
91
  else locals = exports1?.locals;
92
92
  if (Array.isArray(exports1) && emit) {
93
93
  let identifierCountMap = new Map();
@@ -121,13 +121,13 @@ const pitch = function(request, _, data) {
121
121
  ];
122
122
  }()), localsString = identifiers.map(([id, key])=>{
123
123
  var value;
124
- return `\nvar ${id} = ${'function' == typeof (value = locals[key]) ? value.toString() : JSON.stringify(value)};`;
125
- }).join(''), exportsString = `export { ${identifiers.map(([id, key])=>`${id} as ${JSON.stringify(key)}`).join(', ')} }`;
126
- return void 0 !== options.defaultExport && options.defaultExport ? `${localsString}\n${exportsString}\nexport default { ${identifiers.map(([id, key])=>`${JSON.stringify(key)}: ${id}`).join(', ')} }\n` : `${localsString}\n${exportsString}\n`;
124
+ return `\nvar ${id} = ${"function" == typeof (value = locals[key]) ? value.toString() : JSON.stringify(value)};`;
125
+ }).join(""), exportsString = `export { ${identifiers.map(([id, key])=>`${id} as ${JSON.stringify(key)}`).join(", ")} }`;
126
+ return void 0 !== options.defaultExport && options.defaultExport ? `${localsString}\n${exportsString}\nexport default { ${identifiers.map(([id, key])=>`${JSON.stringify(key)}: ${id}`).join(", ")} }\n` : `${localsString}\n${exportsString}\n`;
127
127
  }
128
- return `\n${esModule ? 'export default' : 'module.exports = '} ${JSON.stringify(locals)};`;
128
+ return `\n${esModule ? "export default" : "module.exports = "} ${JSON.stringify(locals)};`;
129
129
  }
130
- return esModule ? '\nexport {};' : '';
130
+ return esModule ? "\nexport {};" : "";
131
131
  }(), resultSource = `// extracted by ${PLUGIN_NAME}`;
132
132
  resultSource += this.hot && emit ? hotLoader(result, {
133
133
  loaderContext: this,
@@ -143,7 +143,7 @@ const pitch = function(request, _, data) {
143
143
  error ? callback(error) : handleExports(exports1);
144
144
  });
145
145
  }, css_extract_loader = function(content) {
146
- if (this._compiler?.options?.experiments?.css && this._module && ('css' === this._module.type || 'css/auto' === this._module.type || 'css/global' === this._module.type || 'css/module' === this._module.type)) return content;
146
+ if (this._compiler?.options?.experiments?.css && this._module && ("css" === this._module.type || "css/auto" === this._module.type || "css/global" === this._module.type || "css/module" === this._module.type)) return content;
147
147
  };
148
148
  for(var __rspack_i in exports.ABSOLUTE_PUBLIC_PATH = __webpack_exports__.ABSOLUTE_PUBLIC_PATH, exports.AUTO_PUBLIC_PATH = __webpack_exports__.AUTO_PUBLIC_PATH, exports.BASE_URI = __webpack_exports__.BASE_URI, exports.MODULE_TYPE = __webpack_exports__.MODULE_TYPE, exports.SINGLE_DOT_PATH_SEGMENT = __webpack_exports__.SINGLE_DOT_PATH_SEGMENT, exports.default = __webpack_exports__.default, exports.hotLoader = __webpack_exports__.hotLoader, exports.pitch = __webpack_exports__.pitch, __webpack_exports__)-1 === [
149
149
  "ABSOLUTE_PUBLIC_PATH",
package/dist/exports.d.ts CHANGED
@@ -1,39 +1,39 @@
1
1
  declare const rspackVersion: string;
2
2
  declare const version: string;
3
3
  export { rspackVersion, version };
4
- export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData, } from './Compilation';
5
- export { Compilation } from './Compilation';
6
- export { Compiler, type CompilerHooks } from './Compiler';
7
- export type { MultiCompilerOptions, MultiRspackOptions } from './MultiCompiler';
8
- export { MultiCompiler } from './MultiCompiler';
9
- import { RspackOptionsApply } from './rspackOptionsApply';
4
+ export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
5
+ export { Compilation } from "./Compilation";
6
+ export { Compiler, type CompilerHooks } from "./Compiler";
7
+ export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
8
+ export { MultiCompiler } from "./MultiCompiler";
9
+ import { RspackOptionsApply } from "./rspackOptionsApply";
10
10
  export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
11
- export type { ChunkGroup } from '@rspack/binding';
12
- export { AsyncDependenciesBlock, Dependency, EntryDependency, } from '@rspack/binding';
13
- export type { Chunk } from './Chunk';
14
- export { ConcatenatedModule } from './ConcatenatedModule';
15
- export { ContextModule } from './ContextModule';
16
- export { ExternalModule } from './ExternalModule';
17
- export type { ResolveData, ResourceDataWithData } from './Module';
18
- export { Module } from './Module';
19
- export type { default as ModuleGraph } from './ModuleGraph';
20
- export { MultiStats } from './MultiStats';
21
- export { NormalModule } from './NormalModule';
22
- export type { NormalModuleFactory } from './NormalModuleFactory';
23
- export { type RspackError, type RspackSeverity, ValidationError, } from './RspackError';
24
- export { RuntimeGlobals } from './RuntimeGlobals';
25
- export { RuntimeModule } from './RuntimeModule';
26
- export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats';
27
- export { Stats } from './Stats';
28
- export { StatsErrorCode } from './stats/statsFactoryUtils';
29
- import * as ModuleFilenameHelpers from './lib/ModuleFilenameHelpers';
11
+ export type { ChunkGroup } from "@rspack/binding";
12
+ export { AsyncDependenciesBlock, Dependency, EntryDependency } from "@rspack/binding";
13
+ export type { Chunk } from "./Chunk";
14
+ export { ConcatenatedModule } from "./ConcatenatedModule";
15
+ export { ContextModule } from "./ContextModule";
16
+ export { ExternalModule } from "./ExternalModule";
17
+ export type { ResolveData, ResourceDataWithData } from "./Module";
18
+ export { Module } from "./Module";
19
+ export type { default as ModuleGraph } from "./ModuleGraph";
20
+ export { MultiStats } from "./MultiStats";
21
+ export { NormalModule } from "./NormalModule";
22
+ export type { NormalModuleFactory } from "./NormalModuleFactory";
23
+ export { type RspackError, type RspackSeverity, ValidationError } from "./RspackError";
24
+ export { RuntimeGlobals } from "./RuntimeGlobals";
25
+ export { RuntimeModule } from "./RuntimeModule";
26
+ export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
27
+ export { Stats } from "./Stats";
28
+ export { StatsErrorCode } from "./stats/statsFactoryUtils";
29
+ import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
30
30
  export { ModuleFilenameHelpers };
31
- export { Template } from './Template';
31
+ export { Template } from "./Template";
32
32
  export declare const WebpackError: ErrorConstructor;
33
- export type { Watching } from './Watching';
34
- import sources = require('../compiled/webpack-sources');
33
+ export type { Watching } from "./Watching";
34
+ import sources = require("../compiled/webpack-sources");
35
35
  export { sources };
36
- import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config';
36
+ import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from "./config";
37
37
  type Config = {
38
38
  getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
39
39
  applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults;
@@ -41,33 +41,29 @@ type Config = {
41
41
  applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults;
42
42
  };
43
43
  export declare const config: Config;
44
- export type * from './config';
44
+ export type * from "./config";
45
45
  export declare const util: {
46
46
  createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
47
47
  cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
48
48
  };
49
- export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions, } from './builtin-plugin';
50
- export { BannerPlugin, CaseSensitivePlugin,
51
- /**
52
- * @deprecated Use `rspack.CaseSensitivePlugin` instead
53
- */
54
- CaseSensitivePlugin as WarnCaseSensitiveModulesPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin';
55
- export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin';
56
- export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin';
57
- export { default as EntryOptionPlugin } from './lib/EntryOptionPlugin';
58
- export { EnvironmentPlugin } from './lib/EnvironmentPlugin';
59
- export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin';
60
- export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin';
61
- export type { OutputFileSystem, WatchFileSystem } from './util/fs';
62
- import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from './builtin-plugin';
49
+ export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
50
+ export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
51
+ export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
52
+ export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
53
+ export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
54
+ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
55
+ export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
56
+ export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
57
+ export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
58
+ import { createRscPlugins, EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, RSC_LAYERS_NAMES, SubresourceIntegrityPlugin } from "./builtin-plugin";
63
59
  export { SubresourceIntegrityPlugin };
64
60
  interface Web {
65
61
  FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
66
62
  }
67
63
  export declare const web: Web;
68
- import { NodeTargetPlugin } from './builtin-plugin';
69
- import NodeEnvironmentPlugin from './node/NodeEnvironmentPlugin';
70
- import NodeTemplatePlugin from './node/NodeTemplatePlugin';
64
+ import { NodeTargetPlugin } from "./builtin-plugin";
65
+ import NodeEnvironmentPlugin from "./node/NodeEnvironmentPlugin";
66
+ import NodeTemplatePlugin from "./node/NodeTemplatePlugin";
71
67
  interface Node {
72
68
  NodeTargetPlugin: typeof NodeTargetPlugin;
73
69
  NodeTemplatePlugin: typeof NodeTemplatePlugin;
@@ -75,75 +71,75 @@ interface Node {
75
71
  }
76
72
  export { lazyCompilationMiddleware };
77
73
  export declare const node: Node;
78
- import { ElectronTargetPlugin } from './builtin-plugin';
74
+ import { ElectronTargetPlugin } from "./builtin-plugin";
79
75
  interface Electron {
80
76
  ElectronTargetPlugin: typeof ElectronTargetPlugin;
81
77
  }
82
78
  export declare const electron: Electron;
83
- import { EnableLibraryPlugin } from './builtin-plugin';
79
+ import { EnableLibraryPlugin } from "./builtin-plugin";
84
80
  interface Library {
85
81
  EnableLibraryPlugin: typeof EnableLibraryPlugin;
86
82
  }
87
83
  export declare const library: Library;
88
- import { EnableWasmLoadingPlugin } from './builtin-plugin';
84
+ import { EnableWasmLoadingPlugin } from "./builtin-plugin";
89
85
  interface Wasm {
90
86
  EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin;
91
87
  }
92
88
  export declare const wasm: Wasm;
93
- import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from './builtin-plugin';
89
+ import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from "./builtin-plugin";
94
90
  interface JavaScript {
95
91
  EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin;
96
92
  JavascriptModulesPlugin: typeof JavascriptModulesPlugin;
97
93
  }
98
94
  export declare const javascript: JavaScript;
99
- import { WebWorkerTemplatePlugin } from './builtin-plugin';
95
+ import { WebWorkerTemplatePlugin } from "./builtin-plugin";
100
96
  interface Webworker {
101
97
  WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
102
98
  }
103
99
  export declare const webworker: Webworker;
104
- import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from './builtin-plugin';
100
+ import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from "./builtin-plugin";
105
101
  interface Optimize {
106
102
  LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
107
103
  RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
108
104
  SplitChunksPlugin: typeof SplitChunksPlugin;
109
105
  }
110
106
  export declare const optimize: Optimize;
111
- import { ModuleFederationPlugin } from './container/ModuleFederationPlugin';
112
- export type { ModuleFederationPluginOptions } from './container/ModuleFederationPlugin';
113
- import { ModuleFederationPluginV1 } from './container/ModuleFederationPluginV1';
114
- export type { ModuleFederationPluginV1Options } from './container/ModuleFederationPluginV1';
115
- import { ContainerPlugin } from './container/ContainerPlugin';
116
- import { ContainerReferencePlugin } from './container/ContainerReferencePlugin';
117
- export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject, } from './container/ContainerPlugin';
118
- export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject, } from './container/ContainerReferencePlugin';
107
+ import { ModuleFederationPlugin } from "./container/ModuleFederationPlugin";
108
+ export type { ModuleFederationPluginOptions } from "./container/ModuleFederationPlugin";
109
+ import { ModuleFederationPluginV1 } from "./container/ModuleFederationPluginV1";
110
+ export type { ModuleFederationPluginV1Options } from "./container/ModuleFederationPluginV1";
111
+ import { ContainerPlugin } from "./container/ContainerPlugin";
112
+ import { ContainerReferencePlugin } from "./container/ContainerReferencePlugin";
113
+ export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject } from "./container/ContainerPlugin";
114
+ export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject } from "./container/ContainerReferencePlugin";
119
115
  export declare const container: {
120
116
  ContainerPlugin: typeof ContainerPlugin;
121
117
  ContainerReferencePlugin: typeof ContainerReferencePlugin;
122
118
  ModuleFederationPlugin: typeof ModuleFederationPlugin;
123
119
  ModuleFederationPluginV1: typeof ModuleFederationPluginV1;
124
120
  };
125
- import { ConsumeSharedPlugin } from './sharing/ConsumeSharedPlugin';
126
- import { ProvideSharedPlugin } from './sharing/ProvideSharedPlugin';
127
- import { SharePlugin } from './sharing/SharePlugin';
128
- export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject, } from './sharing/ConsumeSharedPlugin';
129
- export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject, } from './sharing/ProvideSharedPlugin';
130
- export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions, } from './sharing/SharePlugin';
121
+ import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
122
+ import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
123
+ import { SharePlugin } from "./sharing/SharePlugin";
124
+ export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
125
+ export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
126
+ export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
131
127
  export declare const sharing: {
132
128
  ProvideSharedPlugin: typeof ProvideSharedPlugin;
133
129
  ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
134
130
  SharePlugin: typeof SharePlugin;
135
131
  };
136
- export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions, } from './builtin-loader/lightningcss/index';
137
- export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './builtin-loader/swc/index';
138
- export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions, } from './builtin-plugin';
139
- export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin, } from './builtin-plugin';
140
- import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from '@rspack/binding';
141
- import { createNativePlugin } from './builtin-plugin';
142
- import { minify, minifySync, transform, transformSync } from './swc';
143
- import { VirtualModulesPlugin } from './VirtualModulesPlugin';
132
+ export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
133
+ export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
134
+ export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
135
+ export { CircularDependencyRspackPlugin, ContextReplacementPlugin, Coordinator, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, RscClientPlugin, RscServerPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
136
+ import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "@rspack/binding";
137
+ import { createNativePlugin } from "./builtin-plugin";
138
+ import { minify, minifySync, transform, transformSync } from "./swc";
139
+ import { VirtualModulesPlugin } from "./VirtualModulesPlugin";
144
140
  interface Experiments {
145
141
  globalTrace: {
146
- register: (filter: string, layer: 'logger' | 'perfetto', output: string) => Promise<void>;
142
+ register: (filter: string, layer: "logger" | "perfetto", output: string) => Promise<void>;
147
143
  cleanup: () => Promise<void>;
148
144
  };
149
145
  RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
@@ -174,5 +170,7 @@ interface Experiments {
174
170
  CssChunkingPlugin: typeof CssChunkingPlugin;
175
171
  createNativePlugin: typeof createNativePlugin;
176
172
  VirtualModulesPlugin: typeof VirtualModulesPlugin;
173
+ createRscPlugins: typeof createRscPlugins;
174
+ RSC_LAYERS_NAMES: typeof RSC_LAYERS_NAMES;
177
175
  }
178
176
  export declare const experiments: Experiments;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import * as rspackExports from './exports';
2
- import { rspack as rspackFn } from './rspack';
1
+ import * as rspackExports from "./exports";
2
+ import { rspack as rspackFn } from "./rspack";
3
3
  type Rspack = typeof rspackFn & typeof rspackExports & {
4
4
  rspack: Rspack;
5
5
  webpack: Rspack;
6
6
  };
7
7
  declare const rspack: Rspack;
8
- export * from './exports';
8
+ export * from "./exports";
9
9
  export default rspack;
10
10
  export { rspack };