forked from enviPath/enviPy
Current Dev State
This commit is contained in:
26
static/js/ketcher2/node_modules/babel-plugin-transform-react-jsx-self/lib/index.js
generated
vendored
Normal file
26
static/js/ketcher2/node_modules/babel-plugin-transform-react-jsx-self/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports.default = function (_ref) {
|
||||
var t = _ref.types;
|
||||
|
||||
var visitor = {
|
||||
JSXOpeningElement: function JSXOpeningElement(_ref2) {
|
||||
var node = _ref2.node;
|
||||
|
||||
var id = t.jSXIdentifier(TRACE_ID);
|
||||
var trace = t.thisExpression();
|
||||
|
||||
node.attributes.push(t.jSXAttribute(id, t.jSXExpressionContainer(trace)));
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
visitor: visitor
|
||||
};
|
||||
};
|
||||
|
||||
var TRACE_ID = "__self";
|
||||
|
||||
module.exports = exports["default"];
|
||||
Reference in New Issue
Block a user