We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这个插件的作用就是:将ES6 模块规范的代码转成 UMD模块化规范的代码。 关于JS中几种模块化规范(AMD、CMD、CommonJS、UMD、ES6的Module语法)的介绍请查看这里
export default 42;
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); global.actual = mod.exports; } })(this, function (exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = 42; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
babel-plugin-transform-es2015-modules-umd
这个插件的作用就是:将ES6 模块规范的代码转成 UMD模块化规范的代码。
关于JS中几种模块化规范(AMD、CMD、CommonJS、UMD、ES6的Module语法)的介绍请查看这里
In
Out
The text was updated successfully, but these errors were encountered: