Observed since 20 Oct, 22:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
babel preset that emulates vite's non-standard functionality
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.
This preset includes the following plugins:
npm install --save-dev babel-preset-vite
Without options:
{
"presets": ["babel-preset-vite"]
}
With options:
{
"presets": [
[
"babel-preset-vite",
{
"env": false, // defaults to true
"glob": false, // defaults to true
"hot": false // defaults to true
}
]
]
}
babel --presets babel-preset-vite
require('@babel/core').transformSync('code', {
presets: ['babel-preset-vite']
})
envboolean, defaults to true
Toggles whether or not to perform
import.meta.env transformations.
globboolean, defaults to true
Toggles whether or not to perform
import.meta.glob and import.meta.globEager
transformations.
hotboolean, defaults to true
Toggles whether or not to perform import.meta.hot
transformations.
You can read more about configuring preset options here
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.3-semantically-releasedRegistry latest | 17 Jan 2023 | 10 | |
| 0.0.2-semantically-released | 17 Jan 2023 | 10 | |
| 0.0.1-semantically-released | 17 Jan 2023 | 10 | |
| 0.0.0-semantically-released | 17 Jan 2023 | 10 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e41928d0b42620ebfa30cac681d21943840b1e617056c829d078b0429ceabae7