Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@datadog/build-plugin

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/build-plugin - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+2
-0
dist/esbuild/index.js

@@ -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;

@@ -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;

{
"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": [

@@ -5,6 +5,14 @@ # Build plugin <!-- omit in toc -->

![Yarn's build-plugin output](./assets/build-plugin-output.png)
## 🔥🔥🔥🔥 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 @@