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