(prefix, selector)
| 14 | ? require("postcss-prefix-selector")({ |
| 15 | prefix: ".marimo", |
| 16 | transform(prefix, selector) { |
| 17 | // Global selectors → replace with prefix |
| 18 | if (GLOBAL_SELECTORS.has(selector)) { |
| 19 | return prefix; |
| 20 | } |
| 21 | // Already scoped under .marimo |
| 22 | if (selector.startsWith(".marimo")) { |
| 23 | return selector; |
| 24 | } |
| 25 | // Normal prefixing: .flex → .marimo .flex |
| 26 | return `${prefix} ${selector}`; |
| 27 | }, |
| 28 | }) |
| 29 | : undefined, |
| 30 | process.env.NODE_ENV === "production" ? require("cssnano") : undefined, |