@rspack-debug/core 1.6.6 → 1.7.0-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.
@@ -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 = "webpack://", MODULE_TYPE = "css/mini-extract", AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__", ABSOLUTE_PUBLIC_PATH = `${BASE_URI}/mini-css-extract-plugin/`, SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_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}
@@ -135,7 +135,7 @@ const pitch = function(request, _, data) {
135
135
  locals: locals
136
136
  }) : result, dependencies.length > 0 && this.__internal__setParseMeta(PLUGIN_NAME, JSON.stringify(dependencies)), callback(null, resultSource, void 0, data);
137
137
  };
138
- this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`, {
138
+ this.importModule(`${this.resourcePath}.rspack[javascript/auto]!=!!!${request}`, {
139
139
  layer: options.layer,
140
140
  publicPath: publicPathForExtract,
141
141
  baseUri: `${BASE_URI}/`
@@ -145,7 +145,7 @@ const pitch = function(request, _, data) {
145
145
  }, css_extract_loader = function(content) {
146
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
- for(var __webpack_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 === [
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",
150
150
  "AUTO_PUBLIC_PATH",
151
151
  "BASE_URI",
@@ -154,7 +154,7 @@ for(var __webpack_i__ in exports.ABSOLUTE_PUBLIC_PATH = __webpack_exports__.ABSO
154
154
  "default",
155
155
  "hotLoader",
156
156
  "pitch"
157
- ].indexOf(__webpack_i__) && (exports[__webpack_i__] = __webpack_exports__[__webpack_i__]);
157
+ ].indexOf(__rspack_i) && (exports[__rspack_i] = __webpack_exports__[__rspack_i]);
158
158
  Object.defineProperty(exports, '__esModule', {
159
159
  value: !0
160
160
  });
package/dist/exports.d.ts CHANGED
@@ -56,6 +56,7 @@ export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
56
56
  export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
57
57
  export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
58
58
  import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
59
+ export { SubresourceIntegrityPlugin };
59
60
  interface Web {
60
61
  FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
61
62
  }
@@ -68,6 +69,7 @@ interface Node {
68
69
  NodeTemplatePlugin: typeof NodeTemplatePlugin;
69
70
  NodeEnvironmentPlugin: typeof NodeEnvironmentPlugin;
70
71
  }
72
+ export { lazyCompilationMiddleware };
71
73
  export declare const node: Node;
72
74
  import { ElectronTargetPlugin } from "./builtin-plugin";
73
75
  interface Electron {
@@ -141,11 +143,17 @@ interface Experiments {
141
143
  cleanup: () => Promise<void>;
142
144
  };
143
145
  RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
146
+ /**
147
+ * @deprecated Use `rspack.SubresourceIntegrityPlugin` instead
148
+ */
149
+ SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
144
150
  EsmLibraryPlugin: typeof EsmLibraryPlugin;
145
151
  RsdoctorPlugin: typeof RsdoctorPlugin;
146
152
  RstestPlugin: typeof RstestPlugin;
147
153
  RslibPlugin: typeof RslibPlugin;
148
- SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
154
+ /**
155
+ * @deprecated Use `rspack.lazyCompilationMiddleware` instead
156
+ */
149
157
  lazyCompilationMiddleware: typeof lazyCompilationMiddleware;
150
158
  swc: {
151
159
  transform: typeof transform;