Socket
Socket
Sign inDemoInstall

@wordpress/babel-plugin-import-jsx-pragma

Package Overview
Dependencies
Maintainers
8
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/babel-plugin-import-jsx-pragma - npm Package Compare versions

Comparing version 1.1.3 to 2.0.0

index.js

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 2.0.0 (Unreleased)
### Breaking Change
- Stop using Babel transpilation internally and set node 8 as a minimal version required ([#13540](https://github.com/WordPress/gutenberg/pull/13540)).
### Enhancement
- Plugin skips now adding import JSX pragma when the scope variable is defined for all JSX elements ([#13809](https://github.com/WordPress/gutenberg/pull/13809)).
## 1.1.0 (2018-09-05)

@@ -2,0 +12,0 @@

2

LICENSE.md
### WordPress - Web publishing software
Copyright 2011-2018 by the contributors
Copyright 2011-2019 by the contributors

@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify

{
"name": "@wordpress/babel-plugin-import-jsx-pragma",
"version": "1.1.3",
"version": "2.0.0",
"description": "Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Transform plugin.",

@@ -17,3 +17,4 @@ "author": "The WordPress Contributors",

"type": "git",
"url": "https://github.com/WordPress/gutenberg.git"
"url": "https://github.com/WordPress/gutenberg.git",
"directory": "packages/babel-plugin-import-jsx-pragma"
},

@@ -23,11 +24,9 @@ "bugs": {

},
"engines": {
"node": ">=8"
},
"files": [
"build",
"build-module"
"index.js"
],
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
"@babel/runtime": "^7.0.0"
},
"main": "index.js",
"peerDependencies": {

@@ -39,3 +38,3 @@ "@babel/core": "^7.0.0"

},
"gitHead": "c59ef56fe16bdcc1fffd70b6e8a2fda4bf9c28fe"
"gitHead": "80d228669adadb8dfcd24b8421517fed3be2d474"
}

@@ -7,3 +7,3 @@ # Babel Plugin Import JSX Pragma

**Babel Plugin Import JSX Pragma** automates this process by introducing the necessary import automatically wherever JSX exists, allowing you to use JSX in your code without thinking to ensure the transformed function is within scope.
**Babel Plugin Import JSX Pragma** automates this process by introducing the necessary import automatically wherever JSX exists, allowing you to use JSX in your code without thinking to ensure the transformed function is within scope. It respects existing import statements, as well as scope variable declarations.

@@ -10,0 +10,0 @@ ## Installation

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