
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
babel-plugin-transform-es2015-modules-amd
Advanced tools
This plugin transforms ES2015 modules to Asynchronous Module Definition (AMD).
In
export default 42;
Out
define(["exports"], function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = 42;
});
npm install --save-dev babel-plugin-transform-es2015-modules-amd
.babelrc (Recommended).babelrc
{
"plugins": ["transform-es2015-modules-amd"]
}
babel --plugins transform-es2015-modules-amd script.js
require("babel-core").transform("code", {
plugins: ["transform-es2015-modules-amd"]
});
See options for babel-plugin-transform-es2015-commonjs.
This package transforms ES2015 module syntax into CommonJS syntax. It is useful for projects that need to support Node.js environments or other systems that use CommonJS. Unlike babel-plugin-transform-es2015-modules-amd, which targets AMD, this plugin targets CommonJS.
This package transforms ES2015 module syntax into UMD (Universal Module Definition) syntax. UMD is designed to work everywhere, whether in the browser, Node.js, or as an AMD module. This makes it more versatile compared to babel-plugin-transform-es2015-modules-amd, which specifically targets AMD.
This package transforms ES2015 module syntax into SystemJS module syntax. SystemJS is a dynamic module loader that can load modules in various formats. This plugin is useful for projects that use SystemJS for module loading, offering a different target compared to the AMD focus of babel-plugin-transform-es2015-modules-amd.
FAQs
This plugin transforms ES2015 modules to AMD
The npm package babel-plugin-transform-es2015-modules-amd receives a total of 1,113,784 weekly downloads. As such, babel-plugin-transform-es2015-modules-amd popularity was classified as popular.
We found that babel-plugin-transform-es2015-modules-amd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.