
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
preact-jsx-runtime
Advanced tools
This module serves as an entrypoint for automatic JSX import using Preact. It enables you to use @babel/preset-react
's runtime: 'automatic'
option by assigning 'preact-jsx-runtime'
as the importSource
option. In the future, Preact may offer this out-of-the-box.
For more information, refer to the following resources:
Because preact
is defined as a peer dependency, make sure that it's installed if it is not already:
npm install preact
Then, install preact-jsx-runtime
as a development dependency:
npm install --dev preact-jsx-runtime
You will most likely want to assign this as the importSource
option of @babel/preset-react
.
An example Babel configuration might look like:
{
"presets": [
[
"@babel/preset-react",
{
"runtime": "automatic",
"importSource": "preact-jsx-runtime"
}
]
]
}
Copyright 2020 Andrew Duthie
Released under the MIT License. See LICENSE.md.
1.0.0 (2020-08-08)
FAQs
Preact JSX runtime definition for use with automatic JSX import
The npm package preact-jsx-runtime receives a total of 532 weekly downloads. As such, preact-jsx-runtime popularity was classified as not popular.
We found that preact-jsx-runtime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
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.