-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
v13 breaks ember-cli-styles
#983
Comments
Iterating all the files at runtime implies that all the files were forced to load into the browser. Which we don't want to commit to doing. I don't fully understand why there are four different packages and how they relate and what they do, since none of them have content in their READMEs. But taking a guess here: The addon knows every component's styleNamespace at build time: https://github.com/webark/ember-cli-styles/blob/f28e452889fbac1963c76ae01fe56f7974799304/packages/namespace/lib/style-info.js#L14 And the But that means it could instead be rewritten directly to the value of its styleNamespace, skipping the entire runtime registry. There's no need for all those stub Javascript modules that |
@ef4 First off 🫣🫥 Second, there are 4 packages cause the intent was to allow for a progressive approach, where one could could get co-location of styles without needing the namespace. And you could add backwards support for ember component css without needing it baked into the "name-spacing package". the other package was built to support using multiple css processors in a single app, and being able to incorporate them together. The reason for needing to register the styles into the browser, was to support "auto route name-spacing". https://github.com/webark/ember-cli-styles/blob/f28e452889fbac1963c76ae01fe56f7974799304/packages/namespace/addon/utils/add-route-style-namespace.js#L8 it's been a long time since I was actively working one this.. But i'm But unless you have any ideas off the top of your head @ef4 , I don't think there's a way, (and could probably easily argue that you wouldn't want to) automatically add those computed properties to the controller in order to use in the route. And I have no idea how this package will work in any of the modern ember paradigms as I've been out of ember :( for almost 4 years while i've been doing react 😭 and working with Backstage (which I do enjoy 😊) I'm pretty sure ember-component-css doesn't work with any of this either. (this was supposed to be the "path forward" from ecc) |
It registers
style:
things and then one can look them up. This breaks when usingember-resolver
v13. That is, doingstyle-namespace "foo-bar"
returns a different thing than the one expected.I can create a reproduction repo if that's going to help with debugging the issue.
cc @ef4
The text was updated successfully, but these errors were encountered: