webpack loader for deassert
npm install deassert-loader

\





Any donations would be much appreciated. 😄
deassert is available as part of the Tidelift Subscription.
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.
``shInstall with npm
npm install -D deassert-loader
Usage
You probably don't want to use this library in your development builds. It's designed to be used in your production
builds.
`js
// webpack.config.jsconst isProduction = process.env.NODE_ENV === "production";
module.exports = {
// ...
module: {
rules: isProduction
? [
{
test: /\.js?$/u,
use: "deassert-loader",
exclude: /node_modules/u,
},
]
: [],
},
};
``