@rspack-debug/browser 2.0.4 → 2.0.5
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/builtin-plugin/ExternalsPlugin.d.ts +2 -1
- package/dist/config/target.d.ts +2 -0
- package/dist/config/types.d.ts +42 -0
- package/dist/index.js +1423 -122
- package/dist/napi-binding.d.ts +15 -0
- package/package.json +2 -2
|
@@ -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
|
}
|
package/dist/config/target.d.ts
CHANGED
|
@@ -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 */
|
package/dist/config/types.d.ts
CHANGED
|
@@ -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';
|