babel-preset-preact
Advanced tools
Comparing version 1.0.0 to 1.1.0
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2163
5
42
7985
6
2