Skip to content

pantoken / plugins/pantoken/deprecations/src / deprecationShims

Função: deprecationShims()

deprecationShims(ledger): PantokenPlugin

Beta

Criar o plugin de deprecation-shim a partir de um ledger.

Parâmetros

ledger

DeprecationLedger

O DeprecationLedger (por exemplo formats/tokens/deprecations.json).

Retorna

PantokenPlugin

Um PantokenPlugin cujo gancho tokens acrescenta um shim por entrada.