diff --git a/packages/playground/css/main.js b/packages/playground/css/main.js index f6072ae751df76..90f74c96793c55 100644 --- a/packages/playground/css/main.js +++ b/packages/playground/css/main.js @@ -87,7 +87,7 @@ Promise.all( }) // globEager -const globEager = import.meta.globEager('./glob-import/*.css') +const globEager = import.meta.glob('./glob-import/*.css', { eager: true }) text('.imported-css-globEager', JSON.stringify(globEager, null, 2)) import postcssSourceInput from './postcss-source-input.css?query=foo' diff --git a/packages/playground/glob-import/dir/index.js b/packages/playground/glob-import/dir/index.js index fb87f69f0f3a61..ab298abed485b3 100644 --- a/packages/playground/glob-import/dir/index.js +++ b/packages/playground/glob-import/dir/index.js @@ -1,4 +1,4 @@ -const modules = import.meta.globEager('./*.(js|ts)') -const globWithAlias = import.meta.globEager('@dir/al*.js') +const modules = import.meta.glob('./*.(js|ts)', { eager: true }) +const globWithAlias = import.meta.glob('@dir/al*.js', { eager: true }) export { modules, globWithAlias } diff --git a/packages/playground/glob-import/dir/nested/bar.js b/packages/playground/glob-import/dir/nested/bar.js index a2d2921cca80ad..bb23a5a141de8e 100644 --- a/packages/playground/glob-import/dir/nested/bar.js +++ b/packages/playground/glob-import/dir/nested/bar.js @@ -1,4 +1,4 @@ -const modules = import.meta.globEager('../*.json') +const modules = import.meta.glob('../*.json', { eager: true }) export const msg = 'bar' export { modules } diff --git a/packages/playground/glob-import/index.html b/packages/playground/glob-import/index.html index 64f456aeb4d6a2..8466a6d0495881 100644 --- a/packages/playground/glob-import/index.html +++ b/packages/playground/glob-import/index.html @@ -40,8 +40,9 @@