没有合适的资源?快使用搜索试试~ 我知道了~
babel-plugin-transform-amd-to-commonjs:将 AMD 转换为 CommonJS 的 Babe...
共49个文件
js:28个
yml:4个
json:4个
需积分: 10 0 下载量 132 浏览量
2021-07-23
22:01:11
上传
评论
收藏 201KB ZIP 举报
温馨提示
babel-plugin-transform-amd-to-commonjs 将 AMD 转换为 CommonJS 的 Babel 插件。 ,它使用这个插件来允许同步require AMD 模块。 用法 npm install --save-dev babel-plugin-transform-amd-to-commonjs 将转换添加到您的 .babelrc: { "plugins": ["transform-amd-to-commonjs"] } 例子 定义 输入: define ( [ 'jquery' , 'underscore' , 'myModule' ] , function ( $ , _ ) { // ... return { // ... } ; } ) ; 输出: module . exports = function ( )
资源推荐
资源详情
资源评论
收起资源包目录
babel-plugin-transform-amd-to-commonjs-master.zip (49个子文件)
babel-plugin-transform-amd-to-commonjs-master
.dependabot
config.yml 543B
.github
workflows
nodejs.yml 842B
auto-approve.yml 288B
.eslintrc.js 219B
src
helpers.js 7KB
constants.js 196B
index.js 5KB
.babelrc 131B
examples
transform-amd-to-commonjs-example
more-modules
aliased-module.js 154B
another-module.js 164B
index.html 441B
other-double-export-module.js 128B
double-export-module.js 118B
.eslintrc.js 66B
variable-factory-module.js 159B
webpack.config.js 504B
.babelrc 146B
rest-factory-module.js 156B
LICENSE 1KB
other-module.js 119B
jest.config.js 190B
README.md 979B
tests
.eslintrc.js 102B
index.test.js 1KB
.gitignore 19B
index.js 978B
arrow-function-implicit-return.js 126B
arrow-function-module.js 142B
package-lock.json 403KB
package.json 681B
config-module.js 96B
LICENSE 1KB
README.md 12KB
.all-contributorsrc 2KB
.codecov.yml 26B
tests
test-helpers.js 1KB
require.test.js 4KB
setup.js 100B
.eslintrc.js 63B
define.test.js 15KB
require-arrow.test.js 4KB
define-arrow.test.js 12KB
custom-matchers.js 2KB
CODE_OF_CONDUCT.md 3KB
.gitignore 54B
.eslintignore 42B
package-lock.json 421KB
package.json 2KB
.nvmrc 3B
共 49 条
- 1
资源评论
侯戈
- 粉丝: 20
- 资源: 4630
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功