glimmerjs / glimmer-blueprint

[MOVED] This package is now part of the Glimmer.js monorepo
https://github.com/glimmerjs/glimmer.js
25 stars 13 forks source link

Use CamelCase component name in the Web Component setup #67

Closed jmbejar closed 6 years ago

jmbejar commented 6 years ago

I had problems using glimmerjs > 0.8 with the --web-component option. I've built the project and tested the component in a custom web page, but the component wasn't rendered.

I've found the blueprint was generating an index.ts file with the following line:

initializeCustomElements(app, { 'my-component': 'my-component' });

However, I had to manually change to the following to have the component working

initializeCustomElements(app, { 'my-component': 'MyComponent' });

This follows the changes made in the glimmer-web-component package (https://github.com/glimmerjs/glimmer-web-component/pull/22)

rwjblue commented 6 years ago

Thank you!