feats / babel-plugin-inline-import

inline the raw content of import statements
https://www.npmjs.com/package/babel-plugin-inline-import
MIT License
243 stars 29 forks source link

add support for require() #26

Closed jamiebuilds closed 2 years ago

jamiebuilds commented 4 years ago

This adds support for require(), resolving #4

I moved a couple things into helper functions, and I updated the plugin a bit to follow more Babel-y conventions.

Might want to hide whitespace changes on the diff for this review.