Tidelift is working with the maintainers of deassert and a growing network of open source maintainers
to ensure your open source software supply chain meets enterprise standards now and into the future.
Learn more.
Installation
# Install with npmnpm install -D rollup-plugin-deassert# Install with pnpmpnpm add -D rollup-plugin-deassert# Install with yarnyarn add -D rollup-plugin-deassert# Install with bunbun add -D rollup-plugin-deassert
Usage
You probably don't want to use this library in your development builds. It's designed to be used in your production
builds.
// rollup.config.jsimport { rollupPlugin as deassert } from "deassert";const isProduction = process.env.NODE_ENV === "production";export default { // ... plugins: isProduction ? [ // ... deassert({ include: ["**/*.ts"], // If using TypeScript, be sure to include this config option. Otherwise remove it. }), ] : [ // ... ],};