MCPcopy
hub / github.com/marimo-team/marimo / transform

Function transform

frontend/postcss.config.cjs:16–27  ·  view source on GitHub ↗
(prefix, selector)

Source from the content-addressed store, hash-verified

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,

Callers 1

wrappedFunction · 0.50

Calls 1

hasMethod · 0.45

Tested by 1

wrappedFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…