-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Colocation does not work with anonymous classes and class decorators #583
Comments
Transferred to ember-cli/ember-cli-htmlbars. |
In general, I would think this already works properly. We have an explicit test in the babel plugin for this input: ember-cli-htmlbars/node-tests/colocated-babel-plugin-test.js Lines 113 to 131 in 91554d9
If you could add another test to the broccoli plugin side (maybe there is an issue there and not in the babel plugin) like this: ember-cli-htmlbars/node-tests/colocated-broccoli-plugin-test.js Lines 80 to 138 in 91554d9
That uses |
@boris-petrov - A small reproduction would also be helpful here... |
@rwjblue - sorry, I mentioned that there is a reproduction repo in the original issue I opened, I guess you've missed it. Here is the repo. Note that according to the other issue, |
Ya, I was not really thinking it was an ember-cli-typescript issue, but I do think it is related to a combination of something else. For example, in that repro it looks like your input is leveraging a class decorator and we have #442 reporting issues in that scenario. We'd need to dig in and see if this is actually a duplicate of that issue... |
Yeah, when @dfreeman poked at it, it looked like it was specifically to do with its being a decorated anonymous class—he could reproduce without ember-cli-typescript—but @boris-petrov's finding that it only showed up in his case when ember-cli-typescript was involved suggested to me that it is likely a matter of the ordering of the Babel plugins, since (until very soon now when we ship e-c-ts 4.0) e-c-ts impacts ordering of plugins. Our ecosystem-level changes for ember-cli-babel and ember-cli-typescript should eliminate that as a cause of these kinds of things going forward, but that's likely (at least part of) the root issue there. |
Is this the same as #442? |
Well, in your previous comment you said that it could be... so it still could be. 😄 |
🤦♂️ - totally missed that while triaging issues 😭 But the good news is, old me and current me happen to agree on something... |
Moved from typed-ember/ember-cli-typescript#1166 . There is a reproduction repo there.
cc @chriskrycho
Quote from Chris in Discord:
The text was updated successfully, but these errors were encountered: