Skip to content

pantoken / plugins/pantoken/deprecations/src / deprecationShims

Función: deprecationShims()

deprecationShims(ledger): PantokenPlugin

Beta

Crear el plugin de deprecation-shim a partir de un ledger.

Parámetros

ledger

DeprecationLedger

El DeprecationLedger (por ejemplo, formats/tokens/deprecations.json).

Devuelve

PantokenPlugin

Un PantokenPlugin cuyo hook tokens añade un shim por entrada.