vite-plugin-vue2-enhanced
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

vite-vue2

Now you can use the following Babel features in SFC templates:

@babel/plugin-proposal-nullish-coalescing-operator
@babel/plugin-proposal-optional-chaining
@babel/plugin-transform-arrow-functions
@babel/plugin-transform-block-scoping
@babel/plugin-transform-destructuring
@babel/plugin-transform-parameters
@babel/plugin-transform-spread

Usage

  • run yarn add vite-plugin-vue2-enhanced --dev
  • add the plugin into vite.config.js
// vite.config.js
const { createVuePlugin } = require('vite-plugin-vue2')

module.exports = {
  plugins: [createVuePlugin(/*options*/)],
}

Options

vueTemplateOptions

Type: Object
Default: null

The options for @vue/component-compiler-utils.

jsx

Type: Boolean
Default: false

The options for jsx transform.

jsxOptions

Type: Object

The options for @vue/babel-preset-jsx.

Todo

  • SSR Build
  • Sourcemap

Dependents (0)

Package Sidebar

Install

npm i vite-plugin-vue2-enhanced

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

233 kB

Total Files

55

Last publish

Collaborators

  • pedro.gilmora