
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
vite-babel-plugin-es6-promise
Advanced tools
vite-babel-plugin-es6-promise is a vite.js plugin that rewrites references to the Promise built-in; uses the es6-promise polyfill if needed.
vite-babel-plugin-es6-promise is a vite.js plugin that rewrites references to the Promise built-in; uses the es6-promise polyfill if needed.
Using npm:
npm install vite-babel-plugin-es6-promise --save-dev
Using Yarn:
yarn add vite-babel-plugin-es6-promise -D
Add the plugin to your vite.config.js
or vite.config.ts
:
import { defineConfig } from "vite";
import pEs6 from "vite-babel-plugin-es6-promise";
export default defineConfig({
plugins: [
pEs6({
defaultLocale: "en",
supportedLocales: ["en", "fr", "es"],
localeFiles: "locales/*.json",
}),
],
});
Option | Type | Default | Description |
---|---|---|---|
defaultLocale | string | "en" | The default locale for the project |
supportedLocales | array | ["en"] | List of all supported locales |
localeFiles | string | "locales/*.json" | Glob pattern for translation files |
enableDiagnostics | boolean | false | Enables additional logs and performance metrics |
[vite-babel-plugin-es6-promise] 🌐 Default locale set to "en"
[vite-babel-plugin-es6-promise] ✅ Loaded 3 locale files
MIT © [venjamin1]
Have ideas or improvements? Contributions are welcome! Feel free to open an issue or submit a PR.
FAQs
vite-babel-plugin-es6-promise is a vite.js plugin that rewrites references to the Promise built-in; uses the es6-promise polyfill if needed.
The npm package vite-babel-plugin-es6-promise receives a total of 120 weekly downloads. As such, vite-babel-plugin-es6-promise popularity was classified as not popular.
We found that vite-babel-plugin-es6-promise demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.