ember-resolver
ember-resolver copied to clipboard
createDeprecatedModule should be striped from production builds.
Why? Having the deprecated shims present in dev builds with a deprecation, but not present in prod builds would obviously be a breaking change.
I could see doing a major bump here to drop them completely though.
This was still in our production build https://github.com/ember-cli/ember-resolver/blob/5c6b080059d27d8533e57db2a5a7e7b24eb93727/vendor/ember-resolver/legacy-shims.js#L5-L9
Right, that is because there is no infrastructure for auto-stripping these things in general. https://github.com/ember-cli/rfcs/pull/50 attempts to address this. The Ember.deprecate call there will be a noop in production builds of Ember though.
@chadhietala this may be good task for you svelte tooling