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

Fix broken build for consuming apps on ember-cli 2.10-2.13 when in test or prod mode #18

Merged
merged 1 commit into from
Jul 8, 2017

Conversation

kybishop
Copy link
Owner

@kybishop kybishop commented Jul 8, 2017

Absolute paths are needed for dev-only imports because of the way we strip them in prod/test mode. This caused prod and test builds to fail in consuming apps using ember-cli 2.10 to 2.13. #shame #sorry. I believe 2.14 is still working because of fancy new dead-code elimination, which strips the import for us.

In addition, this.options in ember-popper's index.js is, for reasons not known to me, undefined when the consuming app is running tests with ember 2.10 (and possibly other versions of ember before 2.13).

These bugs are tricky to test because the dummy app and addon tests both work just fine regardless of either 🤔

@kybishop kybishop changed the title fix[build] allow use when not in dev-mode Fix broken build for consuming apps on ember-cli 2.10-2.13 when in test or prod mode Jul 8, 2017
@kybishop kybishop force-pushed the allow-addon-to-be-used-in-consuming-app-tests branch from 16e85a2 to 5008041 Compare July 8, 2017 18:44
@kybishop kybishop merged commit b7d7a82 into master Jul 8, 2017
@kybishop kybishop deleted the allow-addon-to-be-used-in-consuming-app-tests branch August 26, 2017 19:05
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

Successfully merging this pull request may close these issues.

1 participant