Skip to content

Latest commit

 

History

History

vite-plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Datadog Vite Plugin

A Vite plugin to interact with Datadog from your builds.

Installation

  • Yarn
yarn add -D @datadog/vite-plugin
  • NPM
npm install --save-dev @datadog/vite-plugin

Usage

Inside your vite.config.js.

import { datadogVitePlugin } from '@datadog/vite-plugin';
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
        datadogVitePlugin({
            // Configuration
        }),
    ],
};

Tip

It is important to have the plugin in the first position in order to report every other plugins.

Configuration

Check the main README for the common configuration options.