
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
babel-preset-solid
Advanced tools
Babel preset to transform JSX into Solid runtime calls.
Via NPM
npm install babel-preset-solid --save-dev
or Yarn
yarn add babel-preset-solid --dev
Make or update your .babelrc config file with the preset:
{
"presets": [
"solid"
]
}
Via package.json
...
"babel": {
"presets": [
"es2015",
"solid"
],
"plugins": [
]
},
...
When need to transform JSX code to be used on the server, pass the following options
{
"presets": [
["solid", { "generate": "ssr", "hydratable": true }]
]
}
And for the browser build pass the hydratable option as well:
{
"presets": [
["solid", { "generate": "dom", "hydratable": true }]
]
}
FAQs
Babel preset to transform JSX for Solid.js
The npm package babel-preset-solid receives a total of 15,460 weekly downloads. As such, babel-preset-solid popularity was classified as popular.
We found that babel-preset-solid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.