/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/theme/postcss-plugins/postcss-ds-token-fallbacks.mjs
17 строк
432 B
Marco Ciampini
theme: Disallow src in published package (#80213)
15 июл 2026, 00:26
Не верифицирован
15 июл 2026, 00:26
15ac3bc
Код
Авторство
О чём код?
import { addFallbackToVar } from './ds-token-fallbacks.mjs'; /** @type {import('postcss').PluginCreator<never>} */ const plugin = () => ( { postcssPlugin: 'postcss-ds-token-fallbacks', /** @param {import('postcss').Declaration} decl */ Declaration( decl ) { const updated = addFallbackToVar( decl.value ); if ( updated !== decl.value ) { decl.value = updated; } }, } ); plugin.postcss = true; export default plugin;