
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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 698 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.