Skip to content

Commit

Permalink
remove importing plugin which causes memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
robhil committed Nov 20, 2024
1 parent fcbce0f commit fa626fa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { importedPropTypesHandler } from '@uxpin/react-docgen-better-proptypes';
import { readFile } from 'fs-extra';
import { defaultHandlers, Handler, parse, ReactDocgenOptions, resolver } from 'react-docgen';
import { ComponentDoc } from 'react-docgen-typescript/lib';
Expand All @@ -20,7 +19,7 @@ export async function getDefaultComponentFrom(filePath: string): Promise<Compone
let componentDoc: ComponentDoc | undefined;
let error: Error;

const handlers: Handler[] = [...defaultHandlers, importedPropTypesHandler(filePath)];
const handlers: Handler[] = [...defaultHandlers];

// Passing `filename` helps babel to load correct babel configuration file.
// (NOTE: Without filename option, babel behave as if `babelrc: false` is set)
Expand Down

0 comments on commit fa626fa

Please sign in to comment.