babel-preset-preact
Advanced tools
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
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
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
2290
1
8
44
1
1
4
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.5(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.5(transitive)
+ Added@babel/helper-annotate-as-pure@7.25.9(transitive)
+ Added@babel/helper-compilation-targets@7.26.5(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.26.5(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.5(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/plugin-transform-react-jsx@7.25.9(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.26.5(transitive)
+ Added@babel/types@7.26.5(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbrowserslist@4.24.4(transitive)
+ Addedcaniuse-lite@1.0.30001692(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedelectron-to-chromium@1.5.83(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedupdate-browserslist-db@1.1.2(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedbabel-plugin-syntax-jsx@^6.0.2
- Removedbabel-helper-builder-react-jsx@6.26.0(transitive)
- Removedbabel-plugin-syntax-jsx@6.18.0(transitive)
- Removedbabel-plugin-transform-react-jsx@6.24.1(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedesutils@2.0.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedto-fast-properties@1.0.3(transitive)