Fix binding access for plugin-transform-typescript (#13900)
This commit is contained in:
parent
07d1a8008e
commit
c20506e594
@ -305,9 +305,8 @@ export default declare((api: ConfigAPI, opts: Options): Plugin => {
|
|||||||
// just bail if there is no binding, since chances are good that if
|
// just bail if there is no binding, since chances are good that if
|
||||||
// the import statement was injected then it wasn't a typescript type
|
// the import statement was injected then it wasn't a typescript type
|
||||||
// import anyway.
|
// import anyway.
|
||||||
if (!importsToRemove.has(binding.path)) {
|
if (binding && !importsToRemove.has(binding.path)) {
|
||||||
if (
|
if (
|
||||||
binding &&
|
|
||||||
isImportTypeOnly({
|
isImportTypeOnly({
|
||||||
binding,
|
binding,
|
||||||
programPath: path,
|
programPath: path,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user