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

瘦欲@ 提交于 2019-12-19 08:08:17

问题


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.


回答1:


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]


来源:https://stackoverflow.com/questions/27720721/how-to-enable-enable-experimental-mirrors-in-dart-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!