Installations
npm install @0kzh/babel-plugin-transform-vite-meta-glob
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.0.0
NPM Version
7.10.0
Score
64.3
Supply Chain
91.8
Quality
74
Maintenance
100
Vulnerability
99.6
License
Releases
babel-plugin-transform-vite-meta-glob@1.1.2
Published on 16 Jan 2024
babel-preset-vite@1.1.3
Published on 16 Jan 2024
babel-plugin-transform-vite-meta-glob@1.1.1
Published on 26 Dec 2023
babel-preset-vite@1.1.2
Published on 26 Dec 2023
babel-plugin-transform-vite-meta-glob@1.1.0
Published on 18 Dec 2023
babel-preset-vite@1.1.1
Published on 18 Dec 2023
Contributors
Unable to fetch Contributors
Languages
TypeScript (98.73%)
JavaScript (1.27%)
Developer
OpenSourceRaidGuild
Download Statistics
Total Downloads
454
Last Day
3
Last Week
4
Last Month
14
Last Year
158
GitHub Statistics
61 Stars
57 Commits
13 Forks
2 Watching
5 Branches
5 Contributors
Bundle Size
31.86 kB
Minified
10.71 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.0-semantically-released
Package Id
@0kzh/babel-plugin-transform-vite-meta-glob@0.0.0-semantically-released
Unpacked Size
13.47 kB
Size
4.02 kB
File Count
11
NPM Version
7.10.0
Node Version
16.0.0
Publised On
17 Jan 2023
Total Downloads
Cumulative downloads
Total Downloads
454
Last day
0%
3
Compared to previous day
Last week
33.3%
4
Compared to previous week
Last month
27.3%
14
Compared to previous month
Last year
3.3%
158
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
babel-plugin-transform-vite-meta-glob
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.
Example
In
1const modules = import.meta.glob('./path/to/files/**/*') 2 3const eagerModules = 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 7const eagerModules = { 8 './path/to/files/file1.js': require('./path/to/files/file1.js'), 9 './path/to/files/file2.js': require('./path/to/files/file2.js'), 10 './path/to/files/file3.js': require('./path/to/files/file3.js') 11}
Installation
1npm install --save-dev babel-plugin-transform-vite-meta-glob
Usage
With a configuration file (Recommended)
1{ 2 "plugins": ["babel-plugin-transform-vite-meta-glob"] 3}
Via CLI
1babel --plugins babel-plugin-transform-vite-meta-glob script.js
Via Node API
1require('@babel/core').transformSync('code', { 2 plugins: ['babel-plugin-transform-vite-meta-glob'] 3})
![Empty State](/_next/static/media/empty.e5fae2e5.png)
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
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/validate.yml:42
Reason
Found 8/12 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/validate.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceRaidGuild/babel-vite/validate.yml/main?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 5 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 28 are checked with a SAST tool
Score
4.8
/10
Last Scanned on 2025-02-03
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