Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
babel-plugin-transform-vite-meta-hot
Advanced tools
babel plugin that emulates vite's import.meta.hot 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.
In
if (import.meta.hot) {
import.meta.hot.accept(callback);
}
Out
if (module.hot) {
module.hot.accept(callback);
}
npm install --save-dev babel-plugin-transform-vite-meta-hot
{
"plugins": ["babel-plugin-transform-vite-meta-hot"]
}
babel --plugins babel-plugin-transform-vite-meta-hot script.js
require('@babel/core').transformSync('code', {
plugins: ['babel-plugin-transform-vite-meta-hot']
})
FAQs
babel plugin that emulates vite's import.meta.hot functionality
The npm package babel-plugin-transform-vite-meta-hot receives a total of 45,857 weekly downloads. As such, babel-plugin-transform-vite-meta-hot popularity was classified as popular.
We found that babel-plugin-transform-vite-meta-hot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.