JSPM

es3-compatible-webpack-plugin

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q32960F
  • License MIT

A Webpack plugin used for converting code to be ES3-compatible.

Package Exports

  • es3-compatible-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es3-compatible-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ES3-compatible-webpack-plugin

npm javascript

A Webpack plugin used for converting code to be ES3-compatible with less overheads. For instance, transform object members definitions with keyword into quotes wrapped string, or eliminate trailing commas in arrays.

var obj = { extends: 1 }; /** => var obj = { 'extends': 1 }; */
obj.extends; /** => obj['extends'] */

var arr = [1, 2,]; /** => var arr = [1, 2]; */

The first step before using this plugin is to install it:

npm install --save-dev es3-compatible-webpack-plugin

And then, setup it in your Webpack configuration:

/** webpack.config.js */
const ES3CompatibleWebpackPlugin = require('es3-compatible-webpack-plugin').default;

module.exports = {
    /** ... */
    plugins: [
        new ES3CompatibleWebpackPlugin(),
    ],
};

⛽ How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © aleen42