
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vite-plugin-vue2
Advanced tools
⚠️ With the release of Vue 2.7, Vite now provides the official Vue 2 plugin
@vitejs/plugin-vue2
. Thereby this plugin has entered maintenance mode and will only support Vue 2.6 or earlier. This project will reach End of Life by the end of 2022.
npm install vite-plugin-vue2 -D
// vite.config.js
import { createVuePlugin } from 'vite-plugin-vue2'
export default {
plugins: [
createVuePlugin(/* options */)
],
}
vueTemplateOptions
Type: Object
Default: { compilerOptions :{ whitespace: 'condense' } }
Note { whitespace: 'condense' } behavior
A whitespace-only text node between element tags is removed if it contains new lines. Otherwise, it is condensed into a single space.
Consecutive whitespaces inside a non-whitespace-only text node are condensed into a single space.
Using condense mode will result in smaller compiled code size and slightly improved performance. However, it will produce minor visual layout differences compared to plain HTML in certain cases,if you want to keep whitespace behavior, please set { whitespace: 'preserve' }
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
.
target
Type: String
The options for esbuild to transform script code
FAQs
Vite plugin for Vue2
The npm package vite-plugin-vue2 receives a total of 30,254 weekly downloads. As such, vite-plugin-vue2 popularity was classified as popular.
We found that vite-plugin-vue2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.