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

Link back to polypackage example in the what-about-transitional-packages blurb #16

Open
jdalton opened this issue Jun 8, 2016 · 0 comments

Comments

@jdalton
Copy link

jdalton commented Jun 8, 2016

The what-about-transitional-packages blurb references:

This allows for truly gradual upgrades of large codebases. Keep in mind, since requires can be dynamic (and test frameworks quite often do make use of this feature), it may not always be possible to mechanically upgrade a single file in a large codebase without breaking other parts of the application.

Alludes to the poly-packages bit

The transpiler would rewrite any imports from "./lib/" in module.js to "./" in the transpiled CommonJS modules. Since standard modules use a declarative syntax for imports, it is possible to do this transformation soundly and reliably.

But it isn't super clear. A link back to that section would be helpful. I also feel like this is an understood and established gotcha in the age of babel plugins.

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

1 participant