Skip to content

Commit 6adf2a2

Browse files
committed
chore: update
1 parent e12f6f5 commit 6adf2a2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/integration/asset/__snapshots__/index.test.ts.snap

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ export { draft_rslib_entry_namespaceObject as default };
1313
`;
1414

1515
exports[`use json 1`] = `
16-
"JSON.parse('{"foo":1,"bar":["2"]}');
16+
"var data_namespaceObject = {
17+
R: 1,
18+
K: [
19+
"2"
20+
]
21+
};
22+
console.log(data_namespaceObject.R);
23+
console.log(data_namespaceObject.K);
1724
"
1825
`;
1926

website/docs/zh/guide/advanced/svgr-files.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030

3131
## Bundle 模式
3232

33-
在 Bundle 模式下,支持 [Rsbuild SVGR 插件](https://rsbuild.dev/zh/plugins/list/plugin-svgr) 下的所有用法,唯一的区别是当以 URL 形式使用 SVG 文件时,Rslib 会按照 [引用静态资源](/guide/advanced/static-assets) 在产物中对应保留静态资源的 `import` 语句。
33+
在 Bundle 模式下,支持 [Rsbuild SVGR 插件](https://rsbuild.dev/zh/plugins/list/plugin-svgr) 下的所有用法,唯一的区别是当以 URL 形式使用 SVG 文件时,Rslib 会按照 [引用静态资源](/zh/guide/advanced/static-assets) 在产物中对应保留静态资源的 `import` 语句。
3434

3535
下面是一个使用示例:
3636

0 commit comments

Comments
 (0)