/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-plugin-svgr/src/index.ts
26 строк
712 B
Sébastien Lorber
fix(core): restore core svg file-loader (#10820)
06 янв 2025, 19:54
Не верифицирован
06 янв 2025, 19:54
97690ab
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {enhanceConfig} from './svgrLoader'; import type {LoadContext, Plugin} from '@docusaurus/types'; import type {PluginOptions, Options} from './options'; export default function pluginSVGR( _context: LoadContext, options: PluginOptions, ): Plugin { return { name: 'docusaurus-plugin-svgr', configureWebpack: (config, isServer) => { enhanceConfig(config, {isServer, svgrConfig: options.svgrConfig}); }, }; } export {validateOptions} from './options'; export type {PluginOptions, Options};