Provide a flag for controlling the dart2js optimization level when building for web targets (#101945)