-
Notifications
You must be signed in to change notification settings - Fork 142
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
V2 Addons: cannot import template-only components #1121
Comments
When I remove
|
Looking at this, I don't think we actually have an implementation yet for automatically doing the proper template colocation thing for hbs-only components.
import TEMPLATE from './my.hbs';
setComponentTemplate(TEMPLATE, class Whatever {}); by making that But we also need to generate the implied JS files that go with standalone HBS components and that is not implemented. There are two places we'd want it to work:
|
Reproduction: https://github.com/NullVoxPopuli/ember-addon-v2-template-only-import
This was originally discovered here: #1099
but I figured I'd make a more focused issue (cause closing things and checking boxes off is fun)
Atm, this is using the default rollup/babel config shown in the addon-dev package.
This is the error:
my hunch is that rollup is trying to resolve everything before the
addon.hbs()
plugin has ran?Is there a way to force plugin order?
"For fun", I added:
to the plugins list, but that gives this error:
which kinda tells me that the
externals
bit fromaddon.dependencies()
somehow isn't being used?🤔
The text was updated successfully, but these errors were encountered: