File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -565,12 +565,12 @@ const moduleUrls = import.meta.glob('./dir/*.svg', {
565565``` ts
566566// vite によって生成されるコード:
567567const moduleStrings = {
568- ' ./dir/bar.svg' : () => import (' ./dir/bar.js ?raw' ).then ((m ) => m [' default' ]),
569- ' ./dir/foo.svg' : () => import (' ./dir/foo.js ?raw' ).then ((m ) => m [' default' ]),
568+ ' ./dir/bar.svg' : () => import (' ./dir/bar.svg ?raw' ).then ((m ) => m [' default' ]),
569+ ' ./dir/foo.svg' : () => import (' ./dir/foo.svg ?raw' ).then ((m ) => m [' default' ]),
570570}
571571const moduleUrls = {
572- ' ./dir/bar.svg' : () => import (' ./dir/bar.js ?url' ).then ((m ) => m [' default' ]),
573- ' ./dir/foo.svg' : () => import (' ./dir/foo.js ?url' ).then ((m ) => m [' default' ]),
572+ ' ./dir/bar.svg' : () => import (' ./dir/bar.svg ?url' ).then ((m ) => m [' default' ]),
573+ ' ./dir/foo.svg' : () => import (' ./dir/foo.svg ?url' ).then ((m ) => m [' default' ]),
574574}
575575```
576576
You can’t perform that action at this time.
0 commit comments