0.0.6 • Published 3 years ago

vite-plugin-escheck v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-escheck

📖 Introduction

Check all the vite generated files to find whether the code match the selected ES version. If doesn't match the plugin will thorw an error and stop vite emit files.

Demo

📦 Installation

yarn add -D vite-plugin-escheck

🛠 Usage

// vite.config.ts
import ESCheck from 'vite-plugin-escheck'
export default defineConfig({
  plugins: [vue(), ESCheck({
     // type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
    ecmaVersion:'latest' // optional, default 'latest'
  })]
})
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago