iwatakeshi / babel-plugin-remove-import-styles

Removes imported styles using `import` or `require`
MIT License
4 stars 0 forks source link

Transformation makes the code pretty #2

Open aminya opened 3 years ago

aminya commented 3 years ago

When I use this plugin, the code is converted from minified code to pretty code.

aminya commented 3 years ago

I realized this is because of --retain-lines for babel cli. Not sure why its behavior has changed. Now without this option, the code becomes pretty!

iwatakeshi commented 3 years ago

@aminya Hmm. Yeah, if you don't mind creating a pull request, I'll be happy to merge it and publish a new release today.