Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-preact

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-preact - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.npmignore

6

index.js
module.exports = {
pragma: 'h',
jsxPragma: 'h',
plugins: [
require("babel-plugin-transform-react-jsx"),
require("babel-plugin-transform-flow-strip-types"),
require("babel-plugin-syntax-flow"),
[require("babel-plugin-transform-react-jsx"), { "pragma": "h" }],
require("babel-plugin-syntax-jsx"),
]
};
{
"name": "babel-preset-preact",
"version": "1.0.0",
"description": "Babel preset to transform JSX into h() calls",
"version": "1.1.0",
"description": "Babel preset to transform JSX into h() calls.",
"author": "Jason Miller <jason@developit.ca>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/developit/babel-preset-preact",

# babel-preset-preact
Babel preset to transform JSX into h() calls
Babel preset to transform JSX into h() calls.
### Install
Via NPM
```js
npm install babel-preset-preact --save-dev
```
or Yarn
```js
yarn add babel-preset-preact --dev
```
### Usage
Make or update your .babelrc config file with the preset:
```javascript
{
"presets": [
"preact"
]
}
```
Via package.json
```javascript
...
"babel": {
"presets": [
"es2015",
"preact"
]
},
...
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc