Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deassert-loader

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deassert-loader

webpack loader for deassert

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Deassert Loader

npm version CI Coverage Status
code style: prettier GitHub Discussions BSD 3 Clause license Commitizen friendly semantic-release

Donate

Any donations would be much appreciated. 😄

Enterprise Users

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.

Installation

# Install with npm
npm install -D deassert-loader

# Install with pnpm
pnpm add -D deassert-loader

# Install with yarn
yarn add -D deassert-loader

# Install with bun
bun add -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.

// webpack.config.js

const isProduction = process.env.NODE_ENV === "production";

module.exports = {
  // ...
  module: {
    rules: isProduction
      ? [
          {
            test: /\.js?$/u,
            use: "deassert-loader",
            exclude: /node_modules/u,
          },
        ]
      : [],
  },
};

Keywords

FAQs

Package last updated on 14 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc