Allow compilation debug setting to decide if bundles should be enabled or not as per default optimisation framework