add support for dart2native command
YazeedAlKhalaf opened this issue · 4 comments
right now when I try to compile a dart app that depends on dart_express
I get the following error:
error: import of dart:mirrors is not supported in the current Dart runtime
Error: AOT compilation failed
Generating AOT snapshot failed!
can we work on making compiling possible?
pros:
- faster app
- less memory usage
- easier deployment
Hi there @YazeedAlKhalaf,
I'm not directly using dart:mirrors
in this package, but it looks like the markdown4dart
and jael
packages both rely on dart:mirrors
. I will take a look to see if there are alternatives that do not include mirrors or separate them out to their own view engines package so you can choose to not install them if you'd like to use dart2native
to compile your code.
I'll take a look at doing this soon.
Thank you
I can confirm removing mustache4dart
and jael
solves the problem. But since view engines are needed we will need to extract their code to another package like for example dart_express_engines
.
Any updates?
Any updates?