Gathering detailed insights and metrics for babel-plugin-transform-vite-meta-glob
Gathering detailed insights and metrics for babel-plugin-transform-vite-meta-glob
Gathering detailed insights and metrics for babel-plugin-transform-vite-meta-glob
Gathering detailed insights and metrics for babel-plugin-transform-vite-meta-glob
babel preset and plugins that emulate Vite's non-standard functionality
npm install babel-plugin-transform-vite-meta-glob
Typescript
Module System
Node Version
NPM Version
babel-plugin-transform-vite-meta-glob@1.1.2
Updated on Jan 16, 2024
babel-preset-vite@1.1.3
Updated on Jan 16, 2024
babel-plugin-transform-vite-meta-glob@1.1.1
Updated on Dec 26, 2023
babel-preset-vite@1.1.2
Updated on Dec 26, 2023
babel-plugin-transform-vite-meta-glob@1.1.0
Updated on Dec 18, 2023
babel-preset-vite@1.1.1
Updated on Dec 18, 2023
TypeScript (98.73%)
JavaScript (1.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
61 Stars
57 Commits
13 Forks
1 Watchers
5 Branches
5 Contributors
Updated on Dec 22, 2024
Latest Version
1.1.2
Package Id
babel-plugin-transform-vite-meta-glob@1.1.2
Unpacked Size
24.40 kB
Size
5.12 kB
File Count
11
NPM Version
10.2.3
Node Version
20.10.0
Published on
Jan 16, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Please note: this plugin is intended to provide an approximation of some of Vite specific transformations when running the code in non-Vite environment, for example, running tests with a NodeJS based test runner.
The functionality within these transformations should not be relied upon in production.
In
1const modules = import.meta.glob('./path/to/files/**/*') 2 3// eager 4const eagerModules = import.meta.glob('./path/to/files/**/*', { eager: true }) 5 6// deprecated eager 7const deprecatedEagerModules = import.meta.globEager('./path/to/files/**/*')
Out
For the purposes of this example, assume there are 3 files,
files1.js
,files2.js
andfile3.js
at the path of./path/to/files/
relative the files being transformed.
1const modules = { 2 './path/to/files/file1.js': () => import('./path/to/files/file1.js'), 3 './path/to/files/file2.js': () => import(('./path/to/files/file2.js'), 4 './path/to/files/file3.js': () => import(('./path/to/files/file3.js') 5} 6 7// eager 8import * as __glob__0_0 from './path/to/files/file1.js' 9import * as __glob__0_1 from './path/to/files/file2.js' 10import * as __glob__0_2 from './path/to/files/file3.js' 11const eagerModules = { 12 './path/to/files/file1.js': __glob__0_1, 13 './path/to/files/file2.js': __glob__0_2, 14 './path/to/files/file3.js': __glob__0_3 15} 16 17// deprecated eager 18const deprecatedEagerModules = { 19 './path/to/files/file1.js': require('./path/to/files/file1.js'), 20 './path/to/files/file2.js': require('./path/to/files/file2.js'), 21 './path/to/files/file3.js': require('./path/to/files/file3.js') 22}
1npm install --save-dev babel-plugin-transform-vite-meta-glob
1{ 2 "plugins": ["babel-plugin-transform-vite-meta-glob"] 3}
1babel --plugins babel-plugin-transform-vite-meta-glob script.js
1require('@babel/core').transformSync('code', { 2 plugins: ['babel-plugin-transform-vite-meta-glob'] 3})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 8/12 approved changesets -- score normalized to 6
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More