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', |
| }, |
Discovered while reviewing another PR with @pzuraq, we should be passing the source moduleName in to
templateOnly().For example:
ember-cli-htmlbars/node-tests/colocated-broccoli-plugin-test.js
Lines 46 to 54 in fb0b18a