Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to enable --enable-experimental-mirrors in dart build?

My build of my projects are failing because they rely on mirrors and dart build out put tells me to use --enable-experimental-mirrors to try to use mirrors in dart2js code as it is. so if I run pub build --enable-experimental-mirrors all I get is Could not find an option named "enable-experimental-mirrors". Any hints much appreciated.

like image 252
Daniel Robinson Avatar asked Dec 31 '14 11:12

Daniel Robinson


1 Answers

I haven't tried this myself yet but maybe you can pass it as a command line option in the transformer config

transformers:
- $dart2js:
    commandLineOptions: [--enable-experimental-mirrors]
like image 61
Günter Zöchbauer Avatar answered Sep 30 '22 19:09

Günter Zöchbauer