move `debug` from `bundleOptions` to `options`