5

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.

Daniel Robinson
  • 13,806
  • 18
  • 64
  • 112

1 Answers1

5

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]
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • thanks, that stops the compiler warning about the experimental mirrors flag unfortunately it doesn't seem to work with the actual code though, https://github.com/0xor1/sandbox, that's my simple test code. – Daniel Robinson Dec 31 '14 at 13:33
  • I have no information about the capabilities of this experimental mirrors support. – Günter Zöchbauer Dec 31 '14 at 13:50