Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@vue/babel-preset-jsx
Advanced tools
Readme
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 vue
plugin
, 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.x
vue-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 sugarFAQs
Babel preset for Vue JSX
The npm package @vue/babel-preset-jsx receives a total of 734,547 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.