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 exclusion of the hbs file of the pod components when podModulePrefix === '' #1007

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Fix exclusion of the hbs file of the pod components when podModulePrefix === '' #1007

merged 2 commits into from
Oct 19, 2021

Conversation

dcyriller
Copy link
Contributor

A bug

When using a pod component in an app configured with podModulePrefix === '', the hbs file of the component was not included in the build.

This PR adds a failing test and proposes a fix. It would address #987

The fix' assumption

This fix makes the assumpation that the hbs file of a pod component will always be named template.hbs. This is consistent with ember-cli documentation and blueprints. It seems consistent with ember-cli source code as well?

..is properly included when podModulePrefix === ''

This is a reproduction for issue 987.
The hbs files of a pod component was excluded from the bundle. As they
are not referenced by their corresponding JS component, they need to be
included.

We make the assumption that a pod component's hbs file is always named
`template.hbs`.
@dcyriller dcyriller changed the title Fix exclusion of the hbs file of the pod components Fix exclusion of the hbs file of the pod components when podModulePrefix === '' Oct 19, 2021
@dcyriller dcyriller changed the title Fix exclusion of the hbs file of the pod components when podModulePrefix === '' Fix exclusion of the hbs file of the pod components when podModulePrefix === '' Oct 19, 2021
@ef4 ef4 merged commit 82cb439 into embroider-build:master Oct 19, 2021
@ef4
Copy link
Contributor

ef4 commented Oct 19, 2021

Thanks, nice work.

@dcyriller dcyriller deleted the pods-components branch October 19, 2021 12:54
@rwjblue rwjblue added the bug Something isn't working label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants