You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jamesmsk If an import already exists, the plugin will use that name, otherwise no.
Curious why you need this? This is an abstraction that isn't used directly.
Our mono repo's react components are all written in TypeScript and we needed to compensate for contributors who do not work with TypeScript. Readability and speed of development are the reasons for this. When I transpile from React TS to JS, I want the contributors to have a js version of the source file that they can comprehend quickly. So, in this example, I wanted babel to punch out js files with import PropTypes from 'prop-types to keep with the syntax they are historically using.
I'm using this package to have a react js copy of my react typescript components. Is it possible to control the import name?
currently its
I would like to have control of name instead of
_pt
The text was updated successfully, but these errors were encountered: