react-izon-core

Analyze React Component dependencies from AST

Usage no npm install needed!

<script type="module">
  import reactIzonCore from 'https://cdn.skypack.dev/react-izon-core';
</script>

README

react-izon-core

Analyze Dependency of React Component with AST obtained from @babel/parser

Install

Install with npm

gt; npm install react-izon-core

Install with yarn

gt; yarn add react-izon-core

Usage

import { DependencyChecker } from "react-izon-core"

const checker = new DependencyChecker( analyze_file_path, event => {

  if(event.type === "done"){
    const { dependencies } = event;

    // something
  }

})

checker.check()

License

MIT