Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

vite-babel-plugin-es6-promise

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
One or more versions of this package were compromised as part of the ongoing “North Korea’s Contagious Interview Campaign” supply chain attack.

vite-babel-plugin-es6-promise

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.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
120
Maintainers
1
Weekly downloads
 
Created
Source

vite-babel-plugin-es6-promise

npm version

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.

Installation

Using npm:

npm install vite-babel-plugin-es6-promise --save-dev

Using Yarn:

yarn add vite-babel-plugin-es6-promise -D

Usage

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",
    }),
  ],
});

Configuration Options

OptionTypeDefaultDescription
defaultLocalestring"en"The default locale for the project
supportedLocalesarray["en"]List of all supported locales
localeFilesstring"locales/*.json"Glob pattern for translation files
enableDiagnosticsbooleanfalseEnables additional logs and performance metrics

Example Output

[vite-babel-plugin-es6-promise] 🌐 Default locale set to "en"
[vite-babel-plugin-es6-promise] ✅ Loaded 3 locale files

License

MIT © [venjamin1]

Contributing

Have ideas or improvements? Contributions are welcome! Feel free to open an issue or submit a PR.

Keywords

vite

FAQs

Package last updated on 06 Oct 2025

Did you know?

Socket

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.

Install

Related posts