@datadog/esbuild-plugin 2.3.0 → 2.3.1-dev-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.
@@ -1,4 +1,5 @@
1
1
  import * as esbuild from 'esbuild';
2
+ import * as src from 'src';
2
3
  import { UnpluginOptions } from 'unplugin';
3
4
 
4
5
  declare const CONFIG_KEY$1: "rum";
@@ -83,8 +84,14 @@ type BundlerReport = {
83
84
  rawConfig?: any;
84
85
  variant?: string;
85
86
  };
87
+ type ToInjectItem = {
88
+ type: 'file' | 'code';
89
+ value: string;
90
+ fallback?: ToInjectItem;
91
+ };
86
92
  type GlobalContext = {
87
93
  auth?: AuthOptions;
94
+ inject: (item: ToInjectItem) => void;
88
95
  bundler: BundlerReport;
89
96
  build: BuildReport;
90
97
  cwd: string;
@@ -132,7 +139,7 @@ type TelemetryOptions = {
132
139
  timestamp?: number;
133
140
  };
134
141
 
135
- declare const datadogEsbuildPlugin: (options: Options) => esbuild.Plugin;
142
+ declare const datadogEsbuildPlugin: (options: src.EsbuildPluginOptions) => esbuild.Plugin;
136
143
 
137
144
  declare const version: string;
138
145
  declare const helpers: {