/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/video-conversion/src/loader.ts
18 строк
783 B
Adam Silverstein
Animated GIF to video conversion (via mediabunny) plus conversion controls (#78410)
29 июн 2026, 21:44
Не верифицирован
29 июн 2026, 21:44
484eecc
Код
Авторство
О чём код?
/** * Loader for the @wordpress/video-conversion/worker module. * * This tiny module exists so that WordPress can discover the video conversion * worker as a dynamic module dependency and include it in the import map. * Without this, the dynamic import() call in the upload-media IIFE bundle * cannot resolve the module URL at runtime. * * The loader is enqueued on block editor pages via wp_enqueue_script_module() * in lib/client-assets.php. The worker module is only fetched when * GIF-to-video conversion is actually triggered. * * @see packages/upload-media/src/store/utils/video-conversion.ts (the consumer) * @see packages/vips/src/loader.ts (the reference pattern) */ export default function loader() { return import( '@wordpress/video-conversion/worker' ); }