Socket
Book a DemoInstallSign in
Socket

prepack-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prepack-webpack-plugin

A webpack plugin for prepack.

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
39
50%
Maintainers
1
Weekly downloads
 
Created
Source

prepack-webpack-plugin

Travis build status Coveralls NPM version Canonical Code Style

A webpack plugin for prepack.

Usage

  • Install prepack-webpack-plugin.
  • Add an instance of the plugin to the webpack plugin configuration.

Note that this plugin only works with webpack 4.x

Configuration

NameDescriptionDefault
testA regex used to match the files./\.js($|\?)/i
prepackPrepack configuration. See Prepack documentation.

Example

import PrepackWebpackPlugin from 'prepack-webpack-plugin';

const configuration = {};

module.exports = {
  // ...
  plugins: [
    new PrepackWebpackPlugin(configuration)
  ]
};

If you are using commonjs, you must explicitly reference the .default property of the module, e.g.

const PrepackWebpackPlugin = require('prepack-webpack-plugin').default;

const configuration = {};

module.exports = {
  // ...
  plugins: [
    new PrepackWebpackPlugin(configuration)
  ]
};

Keywords

plugin

FAQs

Package last updated on 07 Oct 2018

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