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.1.0 to 2.0.0

13

index.js

@@ -1,6 +0,9 @@

module.exports = {
plugins: [
[require("babel-plugin-transform-react-jsx"), { "pragma": "h" }],
require("babel-plugin-syntax-jsx"),
]
var jsxTransform = require('@babel/plugin-transform-react-jsx');
module.exports = function() {
return {
plugins: [
[jsxTransform, { pragma: 'h' }]
]
};
};
{
"name": "babel-preset-preact",
"version": "1.1.0",
"version": "2.0.0",
"description": "Babel preset to transform JSX into h() calls.",

@@ -10,6 +10,14 @@ "author": "Jason Miller <jason@developit.ca>",

"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "node test.js"
},
"dependencies": {
"babel-plugin-syntax-jsx": "^6.0.2",
"babel-plugin-transform-react-jsx": "^6.0.2"
"@babel/plugin-transform-react-jsx": "^7.3.0"
},
"devDependencies": {
"@babel/core": "^7.5.0"
}
}

@@ -8,3 +8,3 @@ # babel-preset-preact

```js
```javascript
npm install babel-preset-preact --save-dev

@@ -15,3 +15,3 @@ ```

```js
```javascript
yarn add babel-preset-preact --dev

@@ -40,2 +40,4 @@ ```

"preact"
],
"plugins": [
]

@@ -42,0 +44,0 @@ },

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