@datadog/vite-plugin 2.4.0 → 2.4.2
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 -4
- package/dist/src/index.js +21 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +2 -2
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as src from 'src';
|
|
2
|
-
import vite from 'vite';
|
|
3
1
|
import { UnpluginOptions } from 'unplugin';
|
|
2
|
+
import * as vite from 'vite';
|
|
4
3
|
|
|
5
4
|
declare class TrackedFilesMatcher {
|
|
6
5
|
private trackedFilenames;
|
|
@@ -161,7 +160,8 @@ type TelemetryOptions = {
|
|
|
161
160
|
timestamp?: number;
|
|
162
161
|
};
|
|
163
162
|
|
|
164
|
-
declare const datadogVitePlugin: (options:
|
|
163
|
+
declare const datadogVitePlugin: (options: Options) => vite.Plugin<any>[];
|
|
164
|
+
type VitePluginOptions = Options;
|
|
165
165
|
|
|
166
166
|
declare const version: string;
|
|
167
167
|
declare const helpers: {
|
|
@@ -170,5 +170,5 @@ declare const helpers: {
|
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
export { type types$1 as RumTypes, type types as TelemetryTypes, type
|
|
173
|
+
export { type types$1 as RumTypes, type types as TelemetryTypes, type VitePluginOptions, datadogVitePlugin, helpers, version };
|
|
174
174
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.js
CHANGED
|
@@ -18,6 +18,25 @@ var simpleGit = require('simple-git');
|
|
|
18
18
|
var url = require('url');
|
|
19
19
|
var vite = require('vite');
|
|
20
20
|
|
|
21
|
+
function _interopNamespaceDefault(e) {
|
|
22
|
+
var n = Object.create(null);
|
|
23
|
+
if (e) {
|
|
24
|
+
Object.keys(e).forEach(function (k) {
|
|
25
|
+
if (k !== 'default') {
|
|
26
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
27
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return e[k]; }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
n.default = e;
|
|
35
|
+
return Object.freeze(n);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var vite__namespace = /*#__PURE__*/_interopNamespaceDefault(vite);
|
|
39
|
+
|
|
21
40
|
const logPriority = {
|
|
22
41
|
debug: 0,
|
|
23
42
|
info: 1,
|
|
@@ -3125,7 +3144,7 @@ const buildPluginFactory = ({
|
|
|
3125
3144
|
|
|
3126
3145
|
var name = "@datadog/vite-plugin";
|
|
3127
3146
|
var packageManager = "yarn@4.0.2";
|
|
3128
|
-
var version$1 = "2.4.
|
|
3147
|
+
var version$1 = "2.4.2";
|
|
3129
3148
|
var license = "MIT";
|
|
3130
3149
|
var author = "Datadog";
|
|
3131
3150
|
var description = "Datadog Vite Plugin";
|
|
@@ -3222,7 +3241,7 @@ var pkg = {
|
|
|
3222
3241
|
};
|
|
3223
3242
|
|
|
3224
3243
|
const datadogVitePlugin = buildPluginFactory({
|
|
3225
|
-
bundler:
|
|
3244
|
+
bundler: vite__namespace,
|
|
3226
3245
|
version: pkg.version
|
|
3227
3246
|
}).vite;
|
|
3228
3247
|
const version = pkg.version;
|