Socket
Book a DemoInstallSign in
Socket

@discord/babel-plugin-transform-discord-intl

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discord/babel-plugin-transform-discord-intl

Babel plugin for transforming message accesses and definitions

latest
Source
npmnpm
Version
0.26.0-rc.2
Version published
Maintainers
1
Created
Source

babel-plugin-transform-discord-intl

A Babel plugin for transforming intl message usages to obfuscated, minified strings, saving on bundle size and allowing for complete anonymity of string names.

Development

This package is plain CommonJS with JSDoc types that requires no compilation. It can be tested locally by using file: or link: references from another project. No build step is required.

Usage

This plugin is usable with Babel 7+. There is minimal configuration other than extraImports for adding additional names to check and transform usages for.

[
  [
    require('@discord/babel-plugin-transform-discord-intl'),
    {
      extraImports: {
        [path.resolve('some/source/file')]: ['t', 'otherMessagesName'],
      },
    },
  ],
];

FAQs

Package last updated on 11 Aug 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