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

preprocessTemplates is called only once in MU layout #8414

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

ppcano
Copy link
Contributor

@ppcano ppcano commented Feb 7, 2019

Fixes #8196 and supersedes #8197. The PR avoid preprocessTemplates being called twice on the same templates.

The implementation follows the same type of changes that were done at #8289 where defaultPackager.packageStyles became the function to process styles (Classic and MU layout).

This PR changes defaultPackager.processTemplates to be the only function to process templates (Classic and MU layout).

defaultPackager.processSrc becomes defaultPackager.processJavascriptSrc and will only process JS/TS files for MU apps.

@ppcano ppcano changed the title preprocessTemplates is called only once in MU layout WIP - preprocessTemplates is called only once in MU layout Feb 7, 2019
@ppcano ppcano changed the title WIP - preprocessTemplates is called only once in MU layout preprocessTemplates is called only once in MU layout Feb 7, 2019
@ppcano ppcano closed this Feb 7, 2019
@ppcano ppcano reopened this Feb 7, 2019
@ppcano ppcano closed this Feb 7, 2019
@ppcano ppcano reopened this Feb 7, 2019
@ppcano
Copy link
Contributor Author

ppcano commented Feb 7, 2019

/cc @rwjblue

exclude: ['templates/**/*'],
annotation: 'MU Templates',
});
mu = this._debugTree(mu, 'mu-layout:tree:template');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rwjblue rwjblue merged commit 69218c5 into ember-cli:master Feb 14, 2019
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.

2 participants