Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sucrase/webpack-object-rest-spread-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sucrase/webpack-object-rest-spread-plugin

Webpack plugin to enable object rest/spread syntax

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Webpack object rest/spread plugin

npm version MIT License

This is a Webpack plugin that hacks the Webpack parser to allow object rest/spread syntax (e.g. {...a, b: c}) in Webpack 3 and earlier.

Note: This plugin is only necessary when using Webpack 3 or earlier. Webpack 4 natively supports object rest/spread. See https://github.com/webpack/webpack/issues/5548 for troubleshooting tips.

Usage

First install the package as a dev dependency:

yarn add --dev @sucrase/webpack-object-rest-spread-plugin

Then add it as a plugin to your webpack config:

const ObjectRestSpreadPlugin = require('@sucrase/webpack-object-rest-spread-plugin');

...

  plugins: [
    new ObjectRestSpreadPlugin(),
  ],
}

FAQs

Package last updated on 09 Jun 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