Closed niftylettuce closed 6 years ago
Hi @niftylettuce!
This plugin transforms ES6 import syntax. See the usage example.
Ah, thanks @jdalton didn't know it was specific for ES. I'm not sure if you know of an alternative for require
other than just doing it manual?
There may be a transform out there on npmjs.com.
I wasn't able to find one - is it not easy to add support for it in this package?
I had better luck: lebab, replace-require-with-import, require-to-import.
I've used lebab
before :D
I was trying to find something that simply just worked for require
without having to transform to import
😢
Here's my
.babelrc
:Here's an example file:
I'd expect it to be like this after running through with babel, but it's not:
Any idea why? I'm on babel 7x. and all my packages use
@babel/xyz
org.