# esperanto [![Build Status](https://travis-ci.org/esperantojs/esperanto.svg?branch=master)](https://travis-ci.org/esperantojs/esperanto)
## This project is no longer under active development. To bundle ES6 modules, use [Rollup](https://github.com/rollup/rollup). To convert ES6 modules to another format, use [Babel](https://babeljs.io/docs/usage/modules/). See [#191](https://github.com/esperantojs/esperanto/pull/191) for details.
A better way to transpile ES6 modules to AMD and CommonJS:
* Easier - no laborious configuration
* Simpler - doesn't make dangerous assumptions about your project setup
* Smarter - non-destructive source code transformation, no runtime Traceur dependency, and no ES5-only features
* Faster - roughly 10x quicker than the alternatives
Try it online here: [esperantojs.org](http://esperantojs.org)
## Installation
Install esperanto from npm:
```bash
npm install esperanto
```
## Usage
You can use Esperanto in one of two modes:
* [Converting a single module](https://github.com/esperantojs/esperanto/wiki/Converting-a-single-module)
* [Bundling multiple ES6 modules](https://github.com/esperantojs/esperanto/wiki/Bundling-multiple-ES6-modules)
## Why not use existing module transpilers?
See [comparisons with other tools](https://github.com/esperantojs/esperanto/wiki/Comparisons-with-other-tools) for some of the reasons to use Esperanto.
## Credits
Many thanks to [Marijn Haverbeke](http://marijnhaverbeke.nl/) for [Acorn](https://github.com/marijnh/acorn), which does all the heavy lifting.
## License
Copyright 2014 Rich Harris. MIT Licensed.
没有合适的资源?快使用搜索试试~ 我知道了~
世界语:已弃用:一种将ES6模块转换为AMD和CommonJS的简便方法
共1162个文件
js:1146个
md:5个
json:4个
需积分: 49 1 下载量 4 浏览量
2021-02-21
10:10:56
上传
评论
收藏 444KB ZIP 举报
温馨提示
世界语 该项目不再处于积极开发中。 要捆绑ES6模块,请使用 。 要将ES6模块转换为另一种格式,请使用 。 有关详情,请参见 。 将ES6模块移植到AMD和CommonJS的更好方法: 更容易-无需费力的配置 更简单-无需对项目设置做出危险的假设 更智能-无损源代码转换,无运行时Traceur依赖项以及仅ES5的功能 更快-大约比其他产品快10倍 在此处在线尝试: 安装 从npm安装世界语: npm install esperanto 用法 您可以在以下两种模式之一中使用世界语: 为什么不使用现有的模块编译器? 有关使用世界语的某些原因,请参见。 学分 非常感谢的 ,它完成了所有繁重的工作。 执照 版权所有2014 Rich Harris。 麻省理工学院许可。
资源推荐
资源详情
资源评论
收起资源包目录
世界语:已弃用:一种将ES6模块转换为AMD和CommonJS的简便方法 (1162个子文件)
.babelrc 318B
.editorconfig 25B
.gitignore 108B
index.js 6KB
findImportsAndExports.js 6KB
generate.js 6KB
getBundle.js 5KB
index.js 4KB
runEsperanto.js 4KB
esperanto.js 4KB
annotate.js 4KB
index.js 4KB
transformBody.js 4KB
transformBody.js 3KB
index.js 3KB
getModule.js 3KB
getModule.js 3KB
populateIdentifierReplacements.js 3KB
sortModules.js 3KB
packageResult.js 3KB
traverse.js 2KB
umdIntro.js 2KB
populateModuleNames.js 2KB
index.js 2KB
resolveChains.js 2KB
_config.js 2KB
gobblefile.js 2KB
cycles-immediate.js 2KB
index.js 1KB
amd.js 1KB
rewriteExportAssignments.js 1KB
transformExportDeclaration.js 1KB
cjs.js 1KB
walk.js 1KB
resolveId.js 1KB
handleError.js 1KB
topLevelScopeConflicts.js 1023B
getUnscopedNames.js 983B
disallowIllegalReassignment.js 972B
main.js 966B
concat.js 956B
umd.js 947B
main.js 942B
cjs.js 888B
getImportSummary.js 882B
umd.js 818B
cjs.js 816B
sanitize.js 784B
33.js 775B
33.js 775B
getReadOnlyIdentifiers.js 752B
umd.js 749B
_config.js 745B
_config.js 745B
builtins.js 740B
umd.js 737B
resolveExports.js 708B
amd.js 702B
cjs.js 655B
amd.js 629B
amd.js 627B
33.js 616B
33.js 616B
50.js 615B
50.js 615B
33.js 610B
amdIntro.js 579B
index.js 578B
_config.js 578B
getImportSummary.js 577B
33.js 564B
33.js 564B
makeWhitespaceVisible.js 548B
replaceIdentifiers.js 541B
namedExports.js 526B
namedExports.js 526B
disallowConflictingImports.js 520B
updateExportInArgument.js 501B
clashingMixedImports.js 497B
28.js 489B
28.js 489B
namedExports.js 486B
multipleImports.js 482B
evens.js 478B
35.js 476B
35.js 476B
gatherImports.js 474B
34.js 473B
44.js 463B
05.js 459B
50.js 456B
50.js 456B
50.js 450B
20.js 448B
odds.js 446B
34.js 445B
bannerAndFooter.js 439B
export-default.js 438B
test.js 436B
updateExpressionInFunction.js 434B
共 1162 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
孤单的宇航员
- 粉丝: 34
- 资源: 4580
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功