ethanblake4 / dart_eval

Extensible Dart interpreter for Dart with full interop

Home Page:https://pub.dev/packages/dart_eval

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to handle pub imports

Noobware1 opened this issue · comments

Is they're a way to handle pub packages other than manually writting bridge code for all of them?

Well, the next version of dart_eval (v0.7.0) coming out soon is going to "support" pub imports technically. However, because dart_eval does not support all of Dart's features, most Pub packages still will not work except very simple ones (because dart_eval won't be able to compile them fully). So yes, bridging is proabably the best option because you can bridge just the features you need.

Writting all the http package and html package as bridge is too much

The http package is going to be supported in v0.7.0 probably, it's very simple. I'll look into the html package, it can maybe be supported by version 0.7.5 or so

Thanks man