@datadog/webpack-plugin 0.0.1 → 0.0.2-dev

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/package.json CHANGED
@@ -1,38 +1,61 @@
1
1
  {
2
2
  "name": "@datadog/webpack-plugin",
3
3
  "packageManager": "yarn@4.0.2",
4
- "version": "0.0.1",
5
- "private": false,
4
+ "version": "0.0.2-dev",
6
5
  "license": "MIT",
7
6
  "author": "Datadog",
7
+ "type": "module",
8
8
  "main": "./dist/src/index.js",
9
+ "module": "dist/src/index.mjs",
9
10
  "exports": {
10
11
  "./package.json": "./package.json",
11
- ".": "./dist/src/index.js",
12
- "./*": "./dist/src/*.js"
12
+ ".": {
13
+ "import": "./dist/src/index.mjs",
14
+ "require": "./dist/src/index.js",
15
+ "types": "./dist/src/index.d.ts"
16
+ },
17
+ "./*": "./dist/src/*"
13
18
  },
14
19
  "publishConfig": {
15
20
  "access": "public",
16
21
  "exports": {
17
22
  "./package.json": "./package.json",
18
- ".": "./dist/src/index.js",
19
- "./*": "./dist/src/*.js"
23
+ ".": {
24
+ "import": "./dist/src/index.mjs",
25
+ "require": "./dist/src/index.js",
26
+ "types": "./dist/src/index.d.ts"
27
+ },
28
+ "./*": "./dist/src/*"
20
29
  }
21
30
  },
31
+ "files": [
32
+ "dist/*"
33
+ ],
22
34
  "scripts": {
23
- "build": "yarn clean && tsc",
35
+ "build": "yarn clean && rollup --config rollup.config.js",
24
36
  "clean": "rm -rf dist",
25
37
  "prepack": "yarn build",
26
38
  "typecheck": "tsc --noEmit",
27
39
  "watch": "tsc -w"
28
40
  },
29
41
  "devDependencies": {
42
+ "@babel/core": "7.24.5",
43
+ "@babel/preset-env": "7.24.5",
44
+ "@babel/preset-typescript": "7.24.1",
45
+ "@rollup/plugin-babel": "6.0.4",
46
+ "@rollup/plugin-commonjs": "25.0.7",
47
+ "@rollup/plugin-json": "6.1.0",
48
+ "@rollup/plugin-node-resolve": "15.2.3",
49
+ "@types/babel__core": "^7",
50
+ "@types/babel__preset-env": "^7",
51
+ "esbuild": "0.20.2",
52
+ "rollup": "4.17.1",
53
+ "rollup-plugin-dts": "6.1.0",
54
+ "rollup-plugin-esbuild": "6.1.1",
30
55
  "typescript": "5.4.3"
31
56
  },
32
57
  "dependencies": {
33
- "@datadog/build-plugins-core": "0.0.0",
34
- "@dd/factory": "0.0.0",
35
- "webpack": "5.49.0"
58
+ "@dd/factory": "0.0.0"
36
59
  },
37
60
  "peerDependencies": {
38
61
  "webpack": ">= 4.x < 6.x"
@@ -1,2 +0,0 @@
1
- export declare const datadogWebpackPlugin: (options: import("@dd/factory").Options) => WebpackPluginInstance;
2
- export default datadogWebpackPlugin;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,sGAAsG;AACtG,oFAAoF;AACpF,uCAAuC;;;AAEvC,yCAAiD;AAEpC,QAAA,oBAAoB,GAAG,IAAA,4BAAkB,GAAE,CAAC,OAAO,CAAC;AACjE,kBAAe,4BAAoB,CAAC;AACpC,MAAM,CAAC,OAAO,GAAG,4BAAoB,CAAC"}
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- // Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2
- // This product includes software developed at Datadog (https://www.datadoghq.com/).
3
- // Copyright 2019-Present Datadog, Inc.
4
-
5
- import { buildPluginFactory } from '@dd/factory';
6
-
7
- export const datadogWebpackPlugin = buildPluginFactory().webpack;
8
- export default datadogWebpackPlugin;
9
- module.exports = datadogWebpackPlugin;
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "baseUrl": "./",
5
- "rootDir": "./",
6
- "outDir": "./dist"
7
- },
8
- "include": ["**/*"],
9
- "exclude": ["dist", "node_modules"]
10
- }