glimmerjs / glimmer-web-component

Library to boot up your Glimmer components as Web Components
https://glimmerjs.com/guides/using-glimmer-as-web-components
MIT License
30 stars 11 forks source link

Dev Build for web-component version of `app.js` is roughly 3.6MB #8

Closed mswanson closed 6 years ago

mswanson commented 7 years ago

Dev build for default app

Dev build for web component build

I'm not sure what the difference is between this setup and the default setup, but this seems like a pretty large file.

mswanson commented 7 years ago

Looking through the generated file and deleting the source map at the bottom takes the file down to ~600KB

rwjblue commented 7 years ago

The default build includes debug data, you would normally do a production build for deployment.

ember b --environment=production
pittst3r commented 7 years ago

@rwjblue The odd thing is that the development build is quite a bit larger when @glimmer/web-component is included. It makes me think that something not right is happening, and I was expecting un-transpiled code to be more compact (we skip transpilation when the @glimmer/web-component package is part of the project). Perhaps that assumption is my mistake.

pittst3r commented 6 years ago

I'm no longer seeing this. Please reopen if still an issue :)