xjpro / react-in-angularjs

A super simple way to render React components in AngularJS
The Unlicense
23 stars 13 forks source link

Made compatible with ES Module packages + small bug fix #25

Open maxbilbow opened 1 year ago

maxbilbow commented 1 year ago

This PR fixes issue where npm package that specify "type": "module" could not import this tool.

It also adds Typescript as a JavaScript linter, which appears to have exposed a bug in the directive logic.

Additionally, an index.d.ts file has been added to provide Typescript support for consumers.

This PR can be superseded by https://github.com/xjpro/react-in-angularjs/pull/26, which is more comprehensive (but more scary, perhaps?)