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

Ensure vendor tree is transpiled when developing addon. #274

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Dec 15, 2017

By default ember-cli updates a number of the "app trees" to be from tests/dummy when developing an addon locally. We do this for app, styles, templates, public, and tests trees (handled inside lib/broccoli/ember-addon.js).

Unfortunately, we do not forward the apps vendor tree to tests/dummy/. This means that our addon's treeForVendor is called, but then subsequently clobbered by the "apps" vendor tree (which is literally the same tree, but untranspiled).

IMHO, this should be fixed in ember-cli upstream. I can't imagine anyone relying on this behavior intentionally...

By default ember-cli updates a number of the "app trees" to be from
`tests/dummy` when developing an addon locally. We do this for `app`,
`styles`, `templates`, `public`, and `tests` trees (handled inside
`lib/broccoli/ember-addon.js`).

Unfortunately, we do **not** forward the apps `vendor` tree to
`tests/dummy/`. This means that our addon's `treeForVendor` is called,
but then subsequently _clobbered_ by the "apps" `vendor` tree (which is
_literally the same tree_, but untranspiled).

IMHO, this should be fixed in ember-cli upstream. I can't imagine anyone
relying on this behavior intentionally...
@rwjblue
Copy link
Member Author

rwjblue commented Dec 15, 2017

I created ember-cli/ember-cli#7505 to track fixing in ember-cli itself.

@rwjblue rwjblue merged commit a2b9130 into emberjs:master Dec 15, 2017
@rwjblue rwjblue deleted the really-transpile-locally-too branch December 15, 2017 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant