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

es5to3-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es5to3-webpack-plugin

Transforms JavaScript from ES5 to ES3 bundled by webpack.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

es5to3-webpack-plugin

A Webpack plugin that transforms ES5 JavaScript output to ES3. This plugin supports also source maps and handles source map transformation if needed.

Installation

npm install es5to3-webpack-plugin

Usage

In webpack.config.js:


var ES5to3OutputPlugin = require("es5to3-webpack-plugin");
module.exports = {

    // enable source map generation, if necessary
    devtool: "source-map",

    ...
    plugins: [
        new ES5to3OutputPlugin()
    ]
};

Options

options.test

Regular expression that will be used to filter the files within the output stream. Default: defines the file filter, default: /.js$/i

(Hint: Only JavaScript can be transformed.)

Keywords

webpack

FAQs

Package last updated on 07 Jun 2016

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