twitter / twitter-text

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.
https://developer.twitter.com/en/docs/counting-characters
Apache License 2.0
3.07k stars 510 forks source link

Create bundler friendly builds #349

Closed tosuke closed 3 years ago

tosuke commented 3 years ago

Problem

Webpack4でバンドルすると,ビルドサイズが巨大になってしまう

Solution

Result

Tree Shakingできるようになった

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.