1.5.1 • Published 3 years ago

vite-plugin-vue2-cust v1.5.1

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

vite-plugin-vue2

Usage

  • run yarn add vite-plugin-vue2 --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