LegacyPluginThis

LegacyImporter または LegacyFunction コールバックのコンテキストにおける this の値。

非推奨

これはレガシー render および renderSync API のみで使用されます。compilecompileStringcompileAsync、および compileStringAsync を代わりに使用してください。

階層

プロパティ

プロパティ

options: {
    context: LegacyPluginThis;
    data?: string;
    file?: string;
    includePaths: string;
    indentType: 0 | 1;
    indentWidth: number;
    linefeed: "\r" | "\r\n" | "\n" | "\n\r";
    precision: 10;
    result: {
        stats: {
            entry: string;
            start: number;
        };
    };
    style: 1;
}

render または renderSync に渡されたオプションの部分的な表現。

型宣言

  • context: LegacyPluginThis

    このオブジェクトを含む同じ LegacyPluginThis インスタンス。

  • オプション data?: string

    data に渡された値。

  • オプション file?: string

    file または file に渡された値。

  • includePaths: string

    includePaths に渡された値を、Windows では ";"、その他のオペレーティングシステムでは ":" で区切ったもの。これは常に、現在の作業ディレクトリを最初の項目として含みます。

  • indentType: 0 | 1

    indentType"tab" の場合は 1、それ以外の場合は 0。

  • indentWidth: number

    indentWidth に渡された値。それ以外の場合は 2

  • linefeed: "\r" | "\r\n" | "\n" | "\n\r"

    linefeed に渡された値。それ以外の場合は "\n"

  • precision: 10

    常に数値 10。

  • result: {
        stats: {
            entry: string;
            start: number;
        };
    }

    部分的に構築された LegacyResult オブジェクト。

    • stats: {
          entry: string;
          start: number;
      }

      進行中のコンパイルに関する部分的な情報。

      • entry: string

        file が渡された場合はその値、それ以外の場合は文字列 "data"

      • start: number

        1970 年 1 月 1 日 00:00:00 UTC から Sass コンパイルが開始された時刻までのミリ秒数。

  • style: 1

    常に数値 1。