vue-cli-plugin-es-check

1.2.2 • Public • Published

vue-cli-plugin-es-check

Uses es-check to enforce a maximum ES version on your bundled JS.

Helps you keep your transpileDependencies property in vue.config.js up to date.

By default, files that are "modern" are not checked (i.e. non-legacy bundles produced using vue-cli-service build --modern). Only runs in production mode.

Installation

vue add es-check

Check will automatically be run after vue-cli-service build.

Configuration

All config is optional.

// vue.config.js
{
  pluginOptions: {
    esCheck: {
      // [optional] uses sensible defaults if not set
      files: [
        // array of file patterns in glob style
        'js/chunk-vendor.*.js',
        'js/chunk-other.*.js',
        'js/app.*.js',
      ],

      // [optional] default: es5
      esVersion: 'es5'
    }
  }
}

/vue-cli-plugin-es-check/

    Package Sidebar

    Install

    npm i vue-cli-plugin-es-check

    Weekly Downloads

    5

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • diachedelic