You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Near the bottom of the Lit example page, the third-to-last bullet point reads:
customElement (or custom_element) calls are converted to customElements.define calls.
The "or custom_element" part is only true if the camelCase filter has been added.
When I create a new Bridgetown (1.3beta1) site using the bundled configurations for Lit and Ruby2JS (using its preset options), then copy the Lit example into my site's src/_components and add the element to the homepage, I get this error in the browser console when viewing any page:
Uncaught ReferenceError: custom_elements is not defined
rb hello_world.js.rb:9
...
If I add the camelCase filter to the Ruby2JS config file, the error is gone and the component displays normally.
My question is, should the camelCase filter be required for Lit elements to be transpiled correctly? It seems not, based on that bullet point I quoted above, but if this is actually the way it's intended to be, then in Bridgetown 1.3 maybe the bundled configurations should add the camelCase filter automatically whenever the lit filter is added.
The text was updated successfully, but these errors were encountered:
Near the bottom of the Lit example page, the third-to-last bullet point reads:
The "or
custom_element
" part is only true if thecamelCase
filter has been added.When I create a new Bridgetown (1.3beta1) site using the bundled configurations for Lit and Ruby2JS (using its preset options), then copy the Lit example into my site's
src/_components
and add the element to the homepage, I get this error in the browser console when viewing any page:If I add the
camelCase
filter to the Ruby2JS config file, the error is gone and the component displays normally.My question is, should the
camelCase
filter be required for Lit elements to be transpiled correctly? It seems not, based on that bullet point I quoted above, but if this is actually the way it's intended to be, then in Bridgetown 1.3 maybe the bundled configurations should add thecamelCase
filter automatically whenever thelit
filter is added.The text was updated successfully, but these errors were encountered: