Skip to content

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

@rwjblue

Description

@rwjblue

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',
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions