File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
tests/integration/asset/__snapshots__
website/docs/zh/guide/advanced Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ export { draft_rslib_entry_namespaceObject as default };
1313` ;
1414
1515exports [` 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments