babel-plugin-react-transform
babel-plugin-react-transform copied to clipboard
Babel plugin to instrument React components with custom transforms
When trying to upgrade Babel 7, I experienced an error around the deprecation of `addImport`. Instead, the migration guide recommends using `addDefault` (reference: https://new.babeljs.io/docs/en/next/v7-migration-api.html#babel-core). Error: ``` This API has been...
This project is marked as deprecated, but react-hot-loader is not ready yet. It's very confusing to be directed towards a non-solution from the README, when this babel plugin is still...
A small plugin I made so I could use React Devtools on minified code.
its hard to decide if i need to update or not without any of these information sources
/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-plugin-react-transform/lib/index.js:61 var wrapperFunctionTemplate = template('\n function WRAPPER_FUNCTION_ID(ID_PARAM) {\n return function(COMPONENT_PARAM) {\n return EXPRESSION;\n };\n }\n '); ^ TypeError: template is not a function at exports.default (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-plugin-react-transform/lib/index.js:61:33) at Function.memoisePluginContainer (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/file/plugin-manager.js:77:23) at...
I have a transform that I use to make sure a component isn't rendering twice in under 200ms, Works fine with the regular `React.Component` but after switching to `React.PureComponent` suddenly...
``` import React, { Component, } from 'react'; class Inbox extends Component { getCon = () => { return ( Modify the contents of the function will not be updated....
I have a .babelrc: ``` js { "presets": ["es2015", "react"], "env": { "development": { "plugins": [ // must be an array with options object as second item ["react-transform", { //...
This PR addresses an issue where use of the spread operator inside of a component spec causes `getDisplayName` to fail, since `SpreadOperator` nodes don't have a `key` property. Example class:...