@@ -423,8 +423,8 @@ const modules = import.meta.glob('./dir/*.js')
423423``` js
424424// vite によって生成されたコード
425425const modules = {
426- ' ./dir/foo.js ' : () => import (' ./dir/foo.js' ),
427426 ' ./dir/bar.js ' : () => import (' ./dir/bar.js' ),
427+ ' ./dir/foo.js ' : () => import (' ./dir/foo.js' ),
428428}
429429```
430430
@@ -450,11 +450,11 @@ const modules = import.meta.glob('./dir/*.js', { eager: true })
450450
451451``` js
452452// vite によって生成されたコード
453- import * as __glob__0_0 from ' ./dir/foo .js'
454- import * as __glob__0_1 from ' ./dir/bar .js'
453+ import * as __vite_glob_0_0 from ' ./dir/bar .js'
454+ import * as __vite_glob_0_1 from ' ./dir/foo .js'
455455const modules = {
456- ' ./dir/foo .js' : __glob__0_0 ,
457- ' ./dir/bar .js' : __glob__0_1 ,
456+ ' ./dir/bar .js' : __vite_glob_0_0 ,
457+ ' ./dir/foo .js' : __vite_glob_0_1 ,
458458}
459459```
460460
@@ -498,8 +498,8 @@ const modules = import.meta.glob('./dir/*.js', { import: 'setup' })
498498``` ts
499499// vite によって生成されたコード
500500const modules = {
501- ' ./dir/foo.js' : () => import (' ./dir/foo.js' ).then ((m ) => m .setup ),
502501 ' ./dir/bar.js' : () => import (' ./dir/bar.js' ).then ((m ) => m .setup ),
502+ ' ./dir/foo.js' : () => import (' ./dir/foo.js' ).then ((m ) => m .setup ),
503503}
504504```
505505
@@ -516,11 +516,11 @@ const modules = import.meta.glob('./dir/*.js', {
516516
517517``` ts
518518// vite によって生成されたコード:
519- import { setup as __glob__0_0 } from ' ./dir/foo .js'
520- import { setup as __glob__0_1 } from ' ./dir/bar .js'
519+ import { setup as __vite_glob_0_0 } from ' ./dir/bar .js'
520+ import { setup as __vite_glob_0_1 } from ' ./dir/foo .js'
521521const modules = {
522- ' ./dir/foo .js' : __glob__0_0 ,
523- ' ./dir/bar .js' : __glob__0_1 ,
522+ ' ./dir/bar .js' : __vite_glob_0_0 ,
523+ ' ./dir/foo .js' : __vite_glob_0_1 ,
524524}
525525```
526526
@@ -537,11 +537,11 @@ const modules = import.meta.glob('./dir/*.js', {
537537
538538``` ts
539539// vite によって生成されたコード:
540- import __glob__0_0 from ' ./dir/foo .js'
541- import __glob__0_1 from ' ./dir/bar .js'
540+ import { default as __vite_glob_0_0 } from ' ./dir/bar .js'
541+ import { default as __vite_glob_0_1 } from ' ./dir/foo .js'
542542const modules = {
543- ' ./dir/foo .js' : __glob__0_0 ,
544- ' ./dir/bar .js' : __glob__0_1 ,
543+ ' ./dir/bar .js' : __vite_glob_0_0 ,
544+ ' ./dir/foo .js' : __vite_glob_0_1 ,
545545}
546546```
547547
@@ -565,12 +565,12 @@ const moduleUrls = import.meta.glob('./dir/*.svg', {
565565``` ts
566566// vite によって生成されるコード:
567567const moduleStrings = {
568- ' ./dir/foo .svg' : () => import (' ./dir/foo.js ?raw' ).then ((m ) => m [' default' ]),
569- ' ./dir/bar .svg' : () => import (' ./dir/bar.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/foo .svg' : () => import (' ./dir/foo.js ?url' ).then ((m ) => m [' default' ]),
573- ' ./dir/bar .svg' : () => import (' ./dir/bar.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
0 commit comments