"serviceWorker" in globalThis which unfortunately is a runtime check. Is there a variable (documented or not) that exists in env that would make it so code can be tree shaken? e.g. if (process.env.PLASMO_BUILD_TARGET !== "background") { ... } would allow the bundler to drop this branch if it's part of the background bundle.