-
I would love help pulling together a tutorial, regarding adding test-coverage to ES6 projects using nyc, babel-plugin-istanbul, etc.
I've added this section waiting to be filled in:
http://istanbul.…
-
# 一、模块化
前端模块化的好处都已经被说烂了,归纳为两点:
1. 避免全局变量污染;
2. 有效的处理依赖关系。
ES2015终于引入了模块的概念,最近学习了下,顺便记下笔记。
# 二、准备工作
1. 在Chrome浏览器环境运行代码;
2. 新建个目录,目录下包含两个文件:
- `index.html`
```html
…
-
I got this error while compiling:
`Module build failed: Error: Couldn't find preset "es2015-rollup" relative to directory "/Users/piaaaac/code/dd-mag/node_modules/jump.js"`
Adding `babel-preset-…
-
I am applying this project as a part of https://github.com/philipwalton/analyticsjs-boilerplate in an application that is converting locally from `babel-preset-es2015` to `babel-preset-env` and this i…
-
This seems like the furthest along project for JavaScript call graph visualization. If there is another one you recommend over this, please let me know. Otherwise, I am running it on some source code …
-
Had to remove the uglify from spliff because it errors when I try to use any ES2015 things, so I'll need a new one for minifying.
-
Babel es2015 times out!
-
Pretty much as the title says
-
It seems all of the code mods work with require statements and not import statements, by default (with "add missing Requires") it adds duplicate requires for all of my import statements.
```
const Re…
-