@datadog/build-plugin
Advanced tools
@@ -18,2 +18,3 @@ "use strict"; | ||
| const modules_1 = require("./modules"); | ||
| const helpers_1 = require("../helpers"); | ||
| class BuildPluginClass extends BaseClass_1.BaseClass { | ||
@@ -25,2 +26,3 @@ constructor(opts) { | ||
| setup(build) { | ||
| helpers_1.showDeprecatedMessage('esbuild'); | ||
| if (this.options.disabled) { | ||
@@ -27,0 +29,0 @@ return; |
| import { Module, Compilation, Context } from './types'; | ||
| export declare const showDeprecatedMessage: (bundler: "webpack" | "esbuild") => void; | ||
| export declare const getPluginName: (opts: string | { | ||
@@ -3,0 +4,0 @@ name: string; |
+12
-0
@@ -5,4 +5,16 @@ "use strict"; | ||
| // Copyright 2019-Present Datadog, Inc. | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const fs_extra_1 = require("fs-extra"); | ||
| const chalk_1 = __importDefault(require("chalk")); | ||
| exports.showDeprecatedMessage = (bundler) => { | ||
| console.warn(` | ||
| ${chalk_1.default.bold.red('🔥 Deprecation warning 🔥')} | ||
| ${chalk_1.default.bold.yellow('@datadog/build-plugin')} is now deprecated. | ||
| Please use ${chalk_1.default.bold.green(`@datadog/${bundler}-plugin`)} instead. | ||
| `); | ||
| }; | ||
| exports.getPluginName = (opts) => typeof opts === 'string' ? opts : opts.name; | ||
@@ -9,0 +21,0 @@ // We want to ensure context ends with a slash. |
@@ -20,4 +20,6 @@ "use strict"; | ||
| const tapables_1 = require("./tapables"); | ||
| const helpers_1 = require("../helpers"); | ||
| class BuildPlugin extends BaseClass_1.BaseClass { | ||
| apply(compiler) { | ||
| helpers_1.showDeprecatedMessage('webpack'); | ||
| if (this.options.disabled) { | ||
@@ -24,0 +26,0 @@ return; |
+12
-2
| { | ||
| "name": "@datadog/build-plugin", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "license": "MIT", | ||
| "author": "Datadog", | ||
| "repository": "git://github.com/DataDog/build-plugin.git", | ||
| "homepage": "https://github.com/DataDog/build-plugins#readme", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DataDog/build-plugins" | ||
| }, | ||
| "contributors": [ | ||
| { | ||
| "name": "Yoann Moinet", | ||
| "email": "yoann@datadoghq.com" | ||
| } | ||
| ], | ||
| "main": "./dist", | ||
@@ -8,0 +18,0 @@ "workspaces": [ |
+10
-2
@@ -5,6 +5,14 @@ # Build plugin <!-- omit in toc --> | ||
|  | ||
| ## 🔥🔥🔥🔥 DEPRECATED 🔥🔥🔥🔥 | ||
| > [Yarn](https://github.com/yarnpkg/berry)'s build-plugin output. | ||
| > This package is deprecated ! | ||
| Please use the updated version, now bundler specific: | ||
| - esbuild: [`@datadog/esbuild-plugin`](https://github.com/DataDog/build-plugins/tree/master/packages/published/esbuild-plugin#readme) | ||
| - rollup: [`@datadog/rollup-plugin`](https://github.com/DataDog/build-plugins/tree/master/packages/published/rollup-plugin#readme) | ||
| - rspack: [`@datadog/rspack-plugin`](https://github.com/DataDog/build-plugins/tree/master/packages/published/rspack-plugin#readme) | ||
| - vite: [`@datadog/vite-plugin`](https://github.com/DataDog/build-plugins/tree/master/packages/published/vite-plugin#readme) | ||
| - webpack: [`@datadog/webpack-plugin`](https://github.com/DataDog/build-plugins/tree/master/packages/published/webpack-plugin#readme) | ||
| --- | ||
@@ -11,0 +19,0 @@ |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
141730
1.15%3255
0.49%0
-100%269
3.07%9
-10%