v1.8.10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Repository
Current version released
9 months ago
Versions
- v1.9.3Latest
- v1.9.2
- v1.9.0
- v1.8.23
- v1.8.22
- v1.8.21
- v1.8.20
- v1.8.19
- v1.8.18
- v1.8.17
- 1.8.18
- 1.8.17
- v1.8.16
- v1.8.15
- v1.8.14
- v1.8.13
- v1.8.12
- v1.8.11
- v1.8.10
- v1.8.9
- v1.8.8
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.7.12
- v1.8.0
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.6.15
- v1.7.0
- v1.7.0-beta.5
- v1.6.16
- v1.7.0-beta.4
- v1.7.0-beta.3
- v1.7.0-beta.2
- v1.7.0-beta.1
- v1.7.0-beta.0
- v1.6.14
- v1.6.13
- v1.6.12
- v1.6.11
- v1.6.10
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.5.0-beta.6
- v1.5.0-beta.7
- v1.5.0-beta.5
- v1.5.0-beta.4
- v1.5.0-beta.3
- v1.5.0-beta.1
- v1.5.0-beta.2
- v1.4.8
- v1.5.0-beta.0
- v1.4.7
- v1.4.6
- v1.4.5
babel-preset-solid
Babel preset to transform JSX into Solid runtime calls.
Install
Via NPM
npm install babel-preset-solid --save-dev
or Yarn
yarn add babel-preset-solid --dev
Usage
Make or update your .babelrc config file with the preset:
{
"presets": [
"solid"
]
}
Via package.json
...
"babel": {
"presets": [
"es2015",
"solid"
],
"plugins": [
]
},
...
Usage for SSR code
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 }]
]
}