Fix `Stylesheets can only be emitted to web targets` bug.