Talked to @pzuraq and he mentioned that it's theoretically possible to strip out ember-source code that won't be used due to optional-features. This tooling would be great incentive for apps to invest in moving in the direction the core team/communities deems as the way forward.
Not sure where this would happen, but opening here since it seems like a build time concern
(Reopening ember-cli/ember-cli#9021)
Activity
rwjblue commentedon Apr 2, 2020
Ya, we definitely have the tooling in place to do this safely.
lifeart commentedon Sep 10, 2020
@rwjblue, @mehulkar is it something related to
@glimmer/env? https://github.com/babel/ember-cli-babel/blob/master/index.js#L462 we have to search for global flags and replace it to FALSE for production builds?lifeart commentedon Sep 10, 2020
#18060 may be related
chancancode commentedon Sep 25, 2020
I don't think so, #18060 is talking about canary features.