-
Notifications
You must be signed in to change notification settings - Fork 2
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
Split fit-html.ts into another npm package for writing light sharable web components. #26
Comments
Splitting off a separate package shouldn't be necessary for this. Just importing the
|
Ok, I got it. That's cool. |
BTW, is |
3k was always minzipped size, but that sounds a little large, tbh. fit-html hasn't changed in size very much lately, but lit-html and maybe redux have. How many components are there in your bundle? You may underestimate the size of the template strings. Also, are you using a tree-shaking bundler (webpack 2, rollup)? |
Yeah, I check the bundle file, it's not |
Great! Mind sharing the stats? I‘d be interested in how large lit-html has become by now. :) |
I write the index.ts and import lit-html (v0.10), use rollup to build bundle. import { html } from 'lit-html/lib/lit-extended';
console.log(html) minized size: 5.2Kb |
I'm afraid you're missing the |
We can use fit-html's awesome
withFit
function to write shared web components without anyredux
dependency after doing this.The text was updated successfully, but these errors were encountered: