ethanblake4 / flutter_eval

Code push for Flutter, powered by dart_eval
https://pub.dev/packages/flutter_eval
BSD 3-Clause "New" or "Revised" License
303 stars 29 forks source link

Tree shaking problem #15

Closed fzyzcjy closed 1 year ago

fzyzcjy commented 1 year ago

In order to support all flutter api, we seem to need to finally bridge all of them. Then, Flutter tree shaking is effectively disabled, causing the size to be larger.

This may not be a problem for complicated apps (apps which needs hot update I guess are mainly also large), since they already use a large portion of the framework. Anyway just write down my thoughts about this potential problem.

fzyzcjy commented 1 year ago

Duplicate of https://github.com/ethanblake4/dart_eval/issues/24