-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support for ember-template-imports? #318
Comments
Appears the |
Narrowed it down to this line
local-class attribute replacement will be possible in that case
|
We're planning on a pretty major overhaul (or really, stripping down) of The goal there will be full compatibility with Embroider's strictest settings and FCCTs (a.k.a To temper your expectations, though, I currently have that work lined up to likely happen around May or June, depending on how a couple of other internal projects I'll be taking on at work over the next few months go. |
@dfreeman any update on when support for this will be added? 🙏 |
Yes! I started on this work in June, but have been on vacation for the past six weeks—I start back at work on Monday, and will keep you updated here as there's progress :) |
Hey, I haven't dived deep into the code yet and new to ember as well but first of all, thank @dfreeman for this plugin. I am not sure if @deanylev found a solution but I figured out a hacky way to use module classes work in It seems like importing the stylesheet and accessing the class through the import works for most cases.(skip the scss extension) .shell {
display: grid;
grid-template-rows: var(--app-header-ht) 1fr;
grid-template-columns: 1fr;
height: 100%;
width: 100%;
overflow: hidden;
} // @ts-expect-error
import css from './styles';
import { get } from '@ember/object';
const Shell = <template>
<div class='{{get css "shell"}}' ...attributes>
<Header />
<main class='page-container'>
{{yield}}
</main>
</div>
</template>; PS. I too think this would be a great improvement so happy to contribute if needed :) |
Are there any plans to support ember-template-imports? We were planning to switch our new components over to that but unfortunately it appears ember-css-modules is incompatible. The outputted HTML simply includes the
local-class
attribute verbatim, instead of transforming it to the mangledclass
attribute.The text was updated successfully, but these errors were encountered: