Socket
Socket
Sign inDemoInstall

babel-plugin-jsx-pragmatic

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

15

jsx-pragmatic.js

@@ -25,12 +25,2 @@ /**

Program: {
enter: function (path, state) {
// TODO
// When I can figure out how to access these options in pre(), move this
// validation there.
if (! (state.opts.module && state.opts.import)) {
throw new Error("babel-plugin-jsx-pragmatic: You must specify `module` and `import`");
}
},
// enter
exit: function (path, state) {

@@ -58,2 +48,7 @@ if (! state.get('jsxDetected')) return;

return {
pre: function () {
if (! (this.opts.module && this.opts.import)) {
throw new Error("babel-plugin-jsx-pragmatic: You must specify `module` and `import`");
}
},
inherits: require("babel-plugin-syntax-jsx"),

@@ -60,0 +55,0 @@ visitor: visitor,

{
"name": "babel-plugin-jsx-pragmatic",
"version": "1.0.1",
"version": "1.0.2",
"main": "jsx-pragmatic.js",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc