Skip to content

pantoken-root / renderers/pendo/src / addScope

Փոփոխական: addScope ​

const addScope: {(options?): Plugin; postcss: true; }

Բետա

Ստեղծել @scope-ը փաթաթող plugin.

Type Declaration ​

Պարամետրեր ​

options? ​

AddScopeOptions

Վերադարձվող արժեք ​

Plugin

postcss ​

postcss: true

Պահանջվող PostCSS plugin նշիչ:

Օրինակ ​

ts
import postcss from "postcss";
import { addScope } from "@pantoken/pendo";

const { css } = postcss([addScope({ selector: "._pendo-step-container" })])
  .process(".x{color:red}", { from: undefined });
// "@scope ([class*=\"instui\"]._pendo-step-container) { .x{color:red} }"