How to enable -enable-experimental-mirror in dart creation?

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

+4
source share
1 answer

I have not tried this myself yet, but maybe you can pass it as a command line option in the transformer configuration

transformers:
- $dart2js:
    commandLineOptions: [--enable-experimental-mirrors]
+5
source

Source: https://habr.com/ru/post/1569538/


All Articles