Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_moduleMap Babel option as require path #73

Open
nickdima opened this issue Oct 20, 2015 · 3 comments
Open

_moduleMap Babel option as require path #73

nickdima opened this issue Oct 20, 2015 · 3 comments

Comments

@nickdima
Copy link

If you need to pull fbjs/module-map as _moduleMap in .babelrc there's no way to do it aside from copy/pasting everything as you can't require from there.
Would it be feasible to detect if the option is a string and in that case do a require on it?

@zpao
Copy link
Member

zpao commented Oct 20, 2015

It's possible but for the most part we've avoided using babelrc (as using the API directly has given more flexibility). What use case are you trying to solve?

@nickdima
Copy link
Author

I was connecting the dots for React's build process and considering using a .babelrc and this seemed like the only blocking issue. Anyway, just exploring options...

@zpao
Copy link
Member

zpao commented Oct 20, 2015

We have a config that varies slightly when running tests (don't need all the transforms, for example the DEV one… though we're running it) so I've generally shied away from the rc and towards a shared base config that can be extended (though we don't actually do that in React at the moment).

I'm not against changing how things work, just want to make sure it's worth it and that it's something we can do across our projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants