Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ability to deduplicate babel helpers. #251
This PR sets up the groundwork for allowing Ember apps to externalize Babel helpers, reducing the amount of code shipped to the client by deduplicating common code included by Babel.
Externalized helpers represent a unique problem, because in order to truly deduplicate all helpers, the app and all of its addons need to have a shared contract for which helpers will be included in the global namespaces and which will not. Currently we don't have a method to coalesce configurations from many addons, so the current implementation only works with a single, global, app-wide configuration. Eventually this could be set to reasonable defaults, but now it is left off.
Still WIP, definitely needs testing and tests.