diff --git a/website/docs/en/plugins/list/plugin-svgr.mdx b/website/docs/en/plugins/list/plugin-svgr.mdx index fbb3e10ed0..26c806c05d 100644 --- a/website/docs/en/plugins/list/plugin-svgr.mdx +++ b/website/docs/en/plugins/list/plugin-svgr.mdx @@ -42,7 +42,7 @@ import Logo from './logo.svg?react'; export const App = () => ; ``` -If the imported path does not contain the `?react` suffix, then the SVG will be treated as a normal static asset and you will get a URL: +If the imported path does not contain the `?react` suffix, then the SVG will be treated as a normal static asset and you will get a URL string or base64 URL, see [Import Static Assets](/guide/basic/static-assets). ```js import logoURL from './static/logo.svg'; diff --git a/website/docs/zh/plugins/list/plugin-svgr.mdx b/website/docs/zh/plugins/list/plugin-svgr.mdx index 719027d83c..13e213f0a0 100644 --- a/website/docs/zh/plugins/list/plugin-svgr.mdx +++ b/website/docs/zh/plugins/list/plugin-svgr.mdx @@ -42,7 +42,7 @@ import Logo from './logo.svg?react'; export const App = () => ; ``` -如果导入的路径不包含 `?react` 后缀,那么 SVG 会被当做普通的静态资源来处理,你会得到一个 URL 字符串: +如果导入的路径不包含 `?react` 后缀,那么 SVG 会被当做普通的静态资源来处理,你会得到一个 URL 字符串或 base64 URL,参考 [引用静态资源](/guide/basic/static-assets)。 ```js import logoURL from './static/logo.svg';