swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

adding an option for 'configFile' #30

Open bahtou opened 2 years ago

bahtou commented 2 years ago

Are there any plans on adding an option to the loaders to point to a swcrc configuration file similar to how babel does it? https://babeljs.io/docs/en/options#configfile

rametta commented 2 years ago

I would also like to use this option. It makes migrating from babel to swc much easier if this is supported. For example, I need the currently processed filename to be passed to my plugin, but right now my plugin has no way to know the filename without this option