tleunen/babel-plugin-module-resolver

Support package.json browser field

xjamundx opened this issue · 3 comments

Browserify and I believe webpack support the browser field in the package.json for aliases. Any chance you could as well. I'm all about re-using existing config if possible :)

Hmm... So moving the alias configuration in browser instead?

I know we can setup babel inside package.json as well, so what would be the benefit of this browser field instead of the babel field?

Oh just interoperability between other build tools. It has a full spec here:
https://github.com/defunctzombie/package-browser-field-spec

I see... It's a file to file mapping. Yes we can probably add this to the package. Shouldn't be that hard I guess... Any help is welcome ;)