@rspack-debug/browser 2.0.4 → 2.0.6

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.
package/dist/612.js ADDED
@@ -0,0 +1,69 @@
1
+ var __webpack_modules__ = {};
2
+ var __webpack_module_cache__ = {};
3
+ function __webpack_require__(moduleId) {
4
+ var cachedModule = __webpack_module_cache__[moduleId];
5
+ if (void 0 !== cachedModule) return cachedModule.exports;
6
+ var module = __webpack_module_cache__[moduleId] = {
7
+ exports: {}
8
+ };
9
+ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
10
+ return module.exports;
11
+ }
12
+ __webpack_require__.m = __webpack_modules__;
13
+ (()=>{
14
+ __webpack_require__.n = (module)=>{
15
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
16
+ __webpack_require__.d(getter, {
17
+ a: getter
18
+ });
19
+ return getter;
20
+ };
21
+ })();
22
+ (()=>{
23
+ __webpack_require__.d = (exports, getters, values)=>{
24
+ var define = (defs, kind)=>{
25
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ [kind]: defs[key]
28
+ });
29
+ };
30
+ define(getters, "get");
31
+ define(values, "value");
32
+ };
33
+ })();
34
+ (()=>{
35
+ __webpack_require__.add = function(modules) {
36
+ Object.assign(__webpack_require__.m, modules);
37
+ };
38
+ })();
39
+ (()=>{
40
+ __webpack_require__.g = (()=>{
41
+ if ('object' == typeof globalThis) return globalThis;
42
+ try {
43
+ return this || new Function('return this')();
44
+ } catch (e) {
45
+ if ('object' == typeof window) return window;
46
+ }
47
+ })();
48
+ })();
49
+ (()=>{
50
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
51
+ })();
52
+ (()=>{
53
+ __webpack_require__.r = (exports)=>{
54
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
55
+ value: 'Module'
56
+ });
57
+ Object.defineProperty(exports, '__esModule', {
58
+ value: true
59
+ });
60
+ };
61
+ })();
62
+ (()=>{
63
+ __webpack_require__.nmd = (module)=>{
64
+ module.paths = [];
65
+ if (!module.children) module.children = [];
66
+ return module;
67
+ };
68
+ })();
69
+ export { __webpack_require__ };
@@ -1,7 +1,18 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
2
2
  import { RspackBuiltinPlugin } from './base';
3
+ import type { Module } from '../Module';
4
+ export interface DeterministicModuleIdsPluginOptions {
5
+ context?: string;
6
+ test?: (module: Module) => boolean;
7
+ maxLength?: number;
8
+ salt?: number;
9
+ fixedLength?: boolean;
10
+ failOnConflict?: boolean;
11
+ }
3
12
  export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
13
+ private options;
4
14
  name: BuiltinPluginName;
5
15
  affectedHooks: 'compilation';
16
+ constructor(options?: DeterministicModuleIdsPluginOptions);
6
17
  raw(): BuiltinPlugin;
7
18
  }
@@ -6,7 +6,8 @@ export declare class ExternalsPlugin extends RspackBuiltinPlugin {
6
6
  private type;
7
7
  private externals;
8
8
  private placeInInitial?;
9
+ private fallbackType?;
9
10
  name: BuiltinPluginName;
10
- constructor(type: string, externals: Externals, placeInInitial?: boolean | undefined);
11
+ constructor(type: string, externals: Externals, placeInInitial?: boolean | undefined, fallbackType?: string | undefined);
11
12
  raw(): BuiltinPlugin | undefined;
12
13
  }
@@ -61,6 +61,8 @@ export type EcmaTargetProperties = {
61
61
  bigIntLiteral: boolean | null;
62
62
  /** const and let variable declarations are available */
63
63
  const: boolean | null;
64
+ /** computed property names in object literals are available */
65
+ computedProperty: boolean | null;
64
66
  /** method shorthand in object is available */
65
67
  methodShorthand: boolean | null;
66
68
  /** arrow functions are available */
@@ -268,6 +268,8 @@ export type Environment = {
268
268
  bigIntLiteral?: boolean;
269
269
  /** The environment supports const and let for variable declarations. */
270
270
  const?: boolean;
271
+ /** The environment supports computed property names in object literals ('{ [expr]: value }'). */
272
+ computedProperty?: boolean;
271
273
  /** The environment supports destructuring ('{ a, b } = obj'). */
272
274
  destructuring?: boolean;
273
275
  /** The environment supports 'document' variable. */
@@ -752,11 +754,31 @@ export type CssParserOptions = {
752
754
  * @default true
753
755
  * */
754
756
  url?: CssParserUrl;
757
+ /**
758
+ * Allow to enable/disables `@import` at-rules handling.
759
+ * @default true
760
+ * */
761
+ import?: boolean;
755
762
  /**
756
763
  * Allow to enable/disables `@import` at-rules handling.
757
764
  * @default true
758
765
  * */
759
766
  resolveImport?: CssParserResolveImport;
767
+ /**
768
+ * Enable/disable renaming of `@keyframes`.
769
+ * @default true
770
+ */
771
+ animation?: boolean;
772
+ /**
773
+ * Enable/disable renaming of custom identifiers.
774
+ * @default false
775
+ */
776
+ customIdents?: boolean;
777
+ /**
778
+ * Enable/disable renaming of dashed identifiers, e.g. custom properties.
779
+ * @default false
780
+ */
781
+ dashedIdents?: boolean;
760
782
  };
761
783
  /** Options object for `css/auto`, `css/global` and `css/module` modules. */
762
784
  export type CssModuleParserOptions = {
@@ -774,7 +796,27 @@ export type CssModuleParserOptions = {
774
796
  * Allow to enable/disables `@import` at-rules handling.
775
797
  * @default true
776
798
  * */
799
+ import?: boolean;
800
+ /**
801
+ * Allow to filter handling of `@import` at-rules.
802
+ * @default true
803
+ * */
777
804
  resolveImport?: CssParserResolveImport;
805
+ /**
806
+ * Enable/disable renaming of `@keyframes`.
807
+ * @default true
808
+ */
809
+ animation?: boolean;
810
+ /**
811
+ * Enable/disable renaming of custom identifiers.
812
+ * @default false
813
+ */
814
+ customIdents?: boolean;
815
+ /**
816
+ * Enable/disable renaming of dashed identifiers, e.g. custom properties.
817
+ * @default false
818
+ */
819
+ dashedIdents?: boolean;
778
820
  };
779
821
  type ExportsPresence = 'error' | 'warn' | 'auto' | false;
780
822
  export type JavascriptParserCommonjsExports = boolean | 'skipInEsm';
package/dist/exports.d.ts CHANGED
@@ -79,8 +79,9 @@ interface Electron {
79
79
  ElectronTargetPlugin: typeof ElectronTargetPlugin;
80
80
  }
81
81
  export declare const electron: Electron;
82
- import { HashedModuleIdsPlugin } from './builtin-plugin';
82
+ import { DeterministicModuleIdsPlugin, HashedModuleIdsPlugin } from './builtin-plugin';
83
83
  interface Ids {
84
+ DeterministicModuleIdsPlugin: typeof DeterministicModuleIdsPlugin;
84
85
  HashedModuleIdsPlugin: typeof HashedModuleIdsPlugin;
85
86
  }
86
87
  export declare const ids: Ids;