Skip to content

pantoken-root / renderers/pendo/src / addScope

변수: addScope ​

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

베타

@scope 래핑 플러그인을 만드세요.

Type Declaration ​

매개변수 ​

options? ​

AddScopeOptions

반환값 ​

Plugin

postcss ​

postcss: true

필수 PostCSS 플러그인 마커.

예제 ​

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} }"