[Glimmer2] Ensure attributeBindings are not allowed#13339
[Glimmer2] Ensure attributeBindings are not allowed#13339rwjblue merged 1 commit intoemberjs:masterfrom
Conversation
|
Not sure if this is supposed to be a runtime error or a compile error. It seems like there is an AST transform that would assert this. /cc @krisselden |
|
Build time error that the plugin provides is a better end user experience we should make this pass by enabling the transform on the glimmer templates rather than a runtime thing /cc @rwjblue |
|
Yes, 100% agree. Build time error gives much more info to the user (module + line + column). |
|
Makes sense, taking another stab at this now |
0be96fe to
36b051c
Compare
|
Edit: looks like the existing code is being defensive about this. I'll update |
981e094 to
f2649d7
Compare
There was a problem hiding this comment.
I'd rather put this in packages/ember-template-compiler instead of nesting it within the ember-glimmer package. I'm sure there is a reason for doing it here for now, can you recall what it is?
There was a problem hiding this comment.
From looking at the directory structure, I had just assumed that ember-glimmer/ember-template-compiler was the right place for anything in packages/ember-template-compiler that was getting ported over to glimmer2. That was the only rationale.
Pretty sure we could easily use the existing compileOptions instead of the new, inline one I added in packages/ember-glimmer/lib/ember-template-compiler/system/compile.js if that is preferable.
|
I think there needs to be some clarification here. If you just flip the test from @krisselden has been working to get to a point where we can abstract and re-export htmlbars and glimmer through an @asakusuma can you confirm or deny that this test Just Works™ by flipping it to |
|
It does not just work when I flip it to |
|
@chadhietala see my note reply to @rwjblue's comment, but if the AST is the exact same and we can assume the same transforms, I can just use the existing The reason the tests don't "Just work" is because you have to pass in the transforms. See work being done in EDIT: I think we can just pull in the plugins export from |
|
Yes, I'd prefer to just use the top level |
|
☔ The latest upstream changes (presumably #13345) made this pull request unmergeable. Please resolve the merge conflicts. |
91e1c75 to
1da3795
Compare
1da3795 to
5895e0d
Compare
|
@rwjblue fixed. I tried applying all the htmlbars plugins, but that caused a bunch of test failures, so for now I've only added the plugin needed for this specific issue. |
No description provided.