vite-plugin-vue2 (fork)
This is the fork of the original vite-plugin-vue2 that adds missing features like custom blocks parsing. It will be deprecated once the original one gets such features.
Usage
Add the plugin to your npm module:
- run
yarn add @yfwz100/vite-plugin-vue2 --dev
- add the plugin into
vite.config.js
// vite.config.js const { createVuePlugin } = require('@yfwz100/vite-plugin-vue2') module.exports = { plugins: [createVuePlugin(/*options*/)], }
If you use the original plugin before, you can use this plugin as a dropin replacement.
e.g. in the package.josn
:
{
"dependencies": {
"vite-plugin-vue2": "npm:@yfwz100/vite-plugin-vue2@latest"
}
}
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