@unneeded/needed-typescript
v0.1.0
Published
find imported modules in .ts/.tsx
Downloads
3
Readme
needed-typescript
Find the needed external dependencies in a es file
Usage
import { neededTypescript } from '@unneeded/needed-typescript';
neededTypescript(fileContent, options);
Options
options.cjs
, default totrue
, if parserequire
in cjsoptions.amd
, default totrue
, if parsedefine
andrequire
in amd
Supported file types
- js
- jsx
- ts
- tsx
Supported module types
- es
- cjs
- amd
License
MIT