@datadog/esbuild-plugin 2.3.1-dev-12 → 2.3.1
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 +4 -5
- package/dist/src/index.js +9 -3490
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +9 -3490
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as src from 'src';
|
|
2
|
-
import esbuild from 'esbuild';
|
|
3
1
|
import { UnpluginOptions } from 'unplugin';
|
|
2
|
+
import esbuild from 'esbuild';
|
|
4
3
|
|
|
5
4
|
declare const CONFIG_KEY$1: "rum";
|
|
6
5
|
|
|
@@ -103,7 +102,7 @@ type GlobalContext = {
|
|
|
103
102
|
start: number;
|
|
104
103
|
version: string;
|
|
105
104
|
};
|
|
106
|
-
type GetCustomPlugins
|
|
105
|
+
type GetCustomPlugins = (options: Options, context: GlobalContext) => UnpluginOptions[];
|
|
107
106
|
type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
|
|
108
107
|
type AuthOptions = {
|
|
109
108
|
apiKey?: string;
|
|
@@ -116,7 +115,7 @@ interface GetPluginsOptions {
|
|
|
116
115
|
interface Options extends GetPluginsOptions {
|
|
117
116
|
[CONFIG_KEY$1]?: RumOptions;
|
|
118
117
|
[CONFIG_KEY]?: TelemetryOptions;
|
|
119
|
-
customPlugins?: GetCustomPlugins
|
|
118
|
+
customPlugins?: GetCustomPlugins;
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
interface Metric {
|
|
@@ -143,7 +142,7 @@ type TelemetryOptions = {
|
|
|
143
142
|
timestamp?: number;
|
|
144
143
|
};
|
|
145
144
|
|
|
146
|
-
declare const datadogEsbuildPlugin: (options:
|
|
145
|
+
declare const datadogEsbuildPlugin: (options: Options) => esbuild.Plugin;
|
|
147
146
|
|
|
148
147
|
declare const version: string;
|
|
149
148
|
declare const helpers: {
|