ember-test-waiters
ember-test-waiters copied to clipboard
Look in to using `@embroider/macros` for better production stripping
macros use a babel plugin for dead code elimination, which is more reliable than assuming folks get their terser config correct (what test-waiters currently relies on)
Current approach is using DEBUG from @glimmer/env (which is also via babel plugin, but without the dead-code-elimination).
maybe we can have better stripping similar to this strategy:
export const registerWaiter = DEV ? _realRegisterWaiter : voidFunction;
export const waitForPromise = DEV ? _realWaitForPromise : identityFunction;
// etc