-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Rewrite all require('babel-runtime/**)
statements to absolute paths
#400
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
Conversation
c05087e
to
bd5c628
Compare
@jamestalmage: I think that it would be a much simpler if we just modified the babel-runtime plugin. This seems like something that could easily fall apart. |
You will need to defend that statement with clear examples of how that might happen. |
👍 |
@jamestalmage Anything blocking merging this other than the merge conflict? |
Only if there is a valid reason not to perform this transform. I don't see it causing any problems, and I think it solves other (i.e. they can I will look into rebasing this over the weekend. |
👍 |
@jamestalmage Any chance you could rebase this? This PR have been open forever and would be nice to get it resolved :) |
require('babel-runtime/**)
statements to absolute paths.require('babel-runtime/**)
statements to absolute paths
Sounds like a reasonable idea. We could then wrap |
bd5c628
to
382e50d
Compare
rebased |
LGTM |
@novemberborn Could you open an issue about this? |
Rewrite all `require('babel-runtime/**)` statements to absolute paths
I think messing with the module path is a bad idea, it seems like an easy way to create hard to reproduce bugs.
Also, if a user installs their own version of
babel-runtime
, we have no guarantee it is compatible with the one needed by our tests. By rewriting to absolute paths, we can completely bypass whatever version the user installs locally.This PR adds a babel-plugin which rewrites all
babel-runtime
requires to absolute paths.