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

1.4.4-1 • Public • Published

vite-plugin-vue2 (fork)

This is the fork of the original vite-plugin-vue2, and remove vue-template-compiler from package.json. So this plugin will use parent project's vue-template-compiler. This change is for being compatible with old Vue version (like vue@2.5.x)

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

Readme

Keywords

Package Sidebar

Install

npm i @qs20199/vite-plugin-vue2

Weekly Downloads

15

Version

1.4.4-1

License

MIT

Unpacked Size

120 kB

Total Files

54

Last publish

Collaborators

  • qs20199