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

Update templateOnly compilation to pass the source moduleName as the first argument. #641

Open
rwjblue opened this issue Dec 4, 2020 · 0 comments

Comments

@rwjblue
Copy link
Member

rwjblue commented Dec 4, 2020

Discovered while reviewing another PR with @pzuraq, we should be passing the source moduleName in to templateOnly().

For example:

components: {
'foo.js':
stripIndent`
import { hbs } from 'ember-cli-htmlbars';
const __COLOCATED_TEMPLATE__ = hbs("{{yield}}", {"contents":"{{yield}}","moduleName":"app-name-here/components/foo.hbs","parseOptions":{"srcName":"app-name-here/components/foo.hbs"}});
import templateOnly from '@ember/component/template-only';
export default templateOnly();` + '\n',
},

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

No branches or pull requests

1 participant