@datadog/rspack-plugin 3.2.12-dev.1 → 3.3.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.
- package/dist/src/index.d.ts +42 -3
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +1 -1
- package/dist/src/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -35,14 +35,24 @@ type types = {
|
|
|
35
35
|
};
|
|
36
36
|
declare const getPlugins: GetPlugins;
|
|
37
37
|
type MinifiedPathPrefix = `http://${string}` | `https://${string}` | `/${string}`;
|
|
38
|
-
type
|
|
38
|
+
type SourcemapsUploadOptions = {
|
|
39
39
|
bailOnError?: boolean;
|
|
40
40
|
dryRun?: boolean;
|
|
41
41
|
maxConcurrency?: number;
|
|
42
|
+
};
|
|
43
|
+
type DebugIdSourcemapsOptions = SourcemapsUploadOptions & {
|
|
44
|
+
debugId: true;
|
|
45
|
+
minifiedPathPrefix?: never;
|
|
46
|
+
releaseVersion?: never;
|
|
47
|
+
service?: never;
|
|
48
|
+
};
|
|
49
|
+
type ServiceVersionSourcemapsOptions = SourcemapsUploadOptions & {
|
|
50
|
+
debugId?: false;
|
|
42
51
|
minifiedPathPrefix: MinifiedPathPrefix;
|
|
43
52
|
releaseVersion?: string;
|
|
44
53
|
service: string;
|
|
45
54
|
};
|
|
55
|
+
type SourcemapsOptions = DebugIdSourcemapsOptions | ServiceVersionSourcemapsOptions;
|
|
46
56
|
type ErrorTrackingOptions = {
|
|
47
57
|
enable?: boolean;
|
|
48
58
|
sourcemaps?: SourcemapsOptions;
|
|
@@ -62,6 +72,11 @@ declare const VALID_FUNCTION_KINDS: readonly [
|
|
|
62
72
|
"classPrivateMethod"
|
|
63
73
|
];
|
|
64
74
|
type FunctionKind = (typeof VALID_FUNCTION_KINDS)[number];
|
|
75
|
+
declare const VALID_DECORATOR_SYNTAXES: readonly [
|
|
76
|
+
"legacy",
|
|
77
|
+
"modern"
|
|
78
|
+
];
|
|
79
|
+
type DecoratorSyntax = (typeof VALID_DECORATOR_SYNTAXES)[number];
|
|
65
80
|
type LiveDebuggerOptions = {
|
|
66
81
|
enable?: boolean;
|
|
67
82
|
include?: (string | RegExp)[];
|
|
@@ -69,6 +84,7 @@ type LiveDebuggerOptions = {
|
|
|
69
84
|
honorSkipComments?: boolean;
|
|
70
85
|
functionTypes?: FunctionKind[];
|
|
71
86
|
namedOnly?: boolean;
|
|
87
|
+
decorators?: DecoratorSyntax;
|
|
72
88
|
};
|
|
73
89
|
type LiveDebuggerOptionsWithDefaults = {
|
|
74
90
|
version: string | undefined;
|
|
@@ -77,6 +93,7 @@ type LiveDebuggerOptionsWithDefaults = {
|
|
|
77
93
|
honorSkipComments: boolean;
|
|
78
94
|
functionTypes: FunctionKind[] | undefined;
|
|
79
95
|
namedOnly: boolean;
|
|
96
|
+
decorators: DecoratorSyntax;
|
|
80
97
|
};
|
|
81
98
|
declare const CONFIG_KEY$2: "liveDebugger";
|
|
82
99
|
declare const PLUGIN_NAME$2: PluginName;
|
|
@@ -5085,11 +5102,17 @@ interface PrivacyOptions {
|
|
|
5085
5102
|
addToDictionaryFunctionName?: string;
|
|
5086
5103
|
helperCodeExpression?: string;
|
|
5087
5104
|
}
|
|
5088
|
-
type
|
|
5105
|
+
type DebugIdSourceCodeContextOptions = {
|
|
5106
|
+
debugId: true;
|
|
5089
5107
|
service?: string;
|
|
5090
5108
|
version?: string;
|
|
5091
|
-
debugId?: boolean;
|
|
5092
5109
|
};
|
|
5110
|
+
type ServiceVersionSourceCodeContextOptions = {
|
|
5111
|
+
debugId?: false;
|
|
5112
|
+
service: string;
|
|
5113
|
+
version?: string;
|
|
5114
|
+
};
|
|
5115
|
+
type SourceCodeContextOptions = DebugIdSourceCodeContextOptions | ServiceVersionSourceCodeContextOptions;
|
|
5093
5116
|
type RumOptions = {
|
|
5094
5117
|
enable?: boolean;
|
|
5095
5118
|
sdk?: SDKOptions;
|
|
@@ -5361,6 +5384,21 @@ interface BaseOptions {
|
|
|
5361
5384
|
enableGit?: boolean;
|
|
5362
5385
|
logLevel?: LogLevel;
|
|
5363
5386
|
}
|
|
5387
|
+
type SourcemapsUploadEnabledOptions = {
|
|
5388
|
+
upload: true;
|
|
5389
|
+
bailOnError?: boolean;
|
|
5390
|
+
dryRun?: boolean;
|
|
5391
|
+
maxConcurrency?: number;
|
|
5392
|
+
};
|
|
5393
|
+
type SourcemapsInjectionOnlyOptions = {
|
|
5394
|
+
upload?: false;
|
|
5395
|
+
bailOnError?: never;
|
|
5396
|
+
dryRun?: never;
|
|
5397
|
+
maxConcurrency?: never;
|
|
5398
|
+
};
|
|
5399
|
+
type SourcemapsOptions$1 = {
|
|
5400
|
+
debugId: true;
|
|
5401
|
+
} & (SourcemapsUploadEnabledOptions | SourcemapsInjectionOnlyOptions);
|
|
5364
5402
|
interface Options extends BaseOptions {
|
|
5365
5403
|
[CONFIG_KEY]?: AppsOptions;
|
|
5366
5404
|
[CONFIG_KEY$1]?: ErrorTrackingOptions;
|
|
@@ -5368,6 +5406,7 @@ interface Options extends BaseOptions {
|
|
|
5368
5406
|
[CONFIG_KEY$3]?: MetricsOptions;
|
|
5369
5407
|
[CONFIG_KEY$4]?: OutputOptions;
|
|
5370
5408
|
[rum.CONFIG_KEY]?: RumOptions;
|
|
5409
|
+
sourcemaps?: SourcemapsOptions$1;
|
|
5371
5410
|
customPlugins?: GetCustomPlugins;
|
|
5372
5411
|
}
|
|
5373
5412
|
type OptionsWithDefaults = Assign<Assign<Options, Required<BaseOptions>>, {
|