
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@vue/babel-preset-jsx
Advanced tools
Configurable preset for Vue JSX plugins.
Install the dependencies:
# for yarn:
yarn add @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props
# for npm:
npm install @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props --save
In your babel.config.js:
module.exports = {
presets: ['@vue/babel-preset-jsx'],
}
You can toggle specific features, by default all features (except compositionAPI) are enabled, e.g.:
module.exports = {
presets: [
[
'@vue/babel-preset-jsx',
{
vModel: false,
compositionAPI: true,
},
],
],
}
Options are:
compositionAPI - Enables @vue/babel-sugar-composition-api-inject-h and @vue/babel-sugar-composition-api-render-instance, support returning render function in setup.
false;'auto' (or true), it will detect the Vue version in the project. If it's >= 2.7, it will import the composition utilities from vue, otherwise from @vue/composition-api;'native' (or 'naruto'), it will always import the composition utilities from vueplugin, it will always import the composition utilities from @vue/composition-api, but it will redirect to 'vue' itself when the vue version is 2.7.xvue-demi, it will always import the composition utilities from vue-demi{ importSource: string; }, it will always import the composition utilities from the importSource you setfunctional @vue/babel-sugar-functional-vue - Functional components syntactic sugarinjectH @vue/babel-sugar-inject-h - Automatic h injection syntactic sugarvModel @vue/babel-sugar-v-model - vModel syntactic sugarvOn @vue/babel-sugar-v-on - vOn syntactic sugarbabel-plugin-transform-vue-jsx is another Babel plugin that enables the use of JSX syntax in Vue.js applications. It is similar to @vue/babel-preset-jsx but is a standalone plugin rather than a preset. It provides similar functionality, allowing developers to write Vue components using JSX.
vue-jsx is a package that provides support for JSX in Vue.js. It offers a similar feature set to @vue/babel-preset-jsx, enabling developers to write Vue components using JSX syntax. It is often used in conjunction with Babel to transform JSX code into standard JavaScript.
FAQs
Babel preset for Vue JSX
The npm package @vue/babel-preset-jsx receives a total of 671,502 weekly downloads. As such, @vue/babel-preset-jsx popularity was classified as popular.
We found that @vue/babel-preset-jsx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.