From 35a12b6d85e63b2066eda4d405b4210b516dce2d Mon Sep 17 00:00:00 2001 From: jack <1395093509@qq.com> Date: Sun, 19 Feb 2017 11:10:03 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/module.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/module.md b/docs/module.md index 009592804..abcd6725b 100644 --- a/docs/module.md +++ b/docs/module.md @@ -149,11 +149,25 @@ export {n as m}; 同样的,`function`和`class`的输出,也必须遵守这样的写法。 +NOTE: 测试 https://babeljs.io/repl/ + ```javascript // 报错 function f() {} export f; +// 正确 +function f() {} +export default f; + +// 报错 +var f = function f() {} +export f; + +// 正确 +const f = function func() {} +export default f; + // 正确 export function f() {}; @@ -776,4 +790,3 @@ async function main() { } main(); ``` - From d22128c3daa5c643de120d6a51f867dd572d8839 Mon Sep 17 00:00:00 2001 From: jack <1395093509@qq.com> Date: Sun, 19 Feb 2017 11:11:47 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CNAME b/CNAME index 41a31a738..8b1378917 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -es6.ruanyifeng.com + From bff06ac4b70c026f176e802b023ade880fe88023 Mon Sep 17 00:00:00 2001 From: jack <1395093509@qq.com> Date: Sun, 19 Feb 2017 11:12:25 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index 8b1378917..000000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ - From bce5ee5bb23417ebf703f5ab1b37540fd99bc64c Mon Sep 17 00:00:00 2001 From: Cloudyan Date: Thu, 7 Sep 2017 20:56:59 -0500 Subject: [PATCH 4/5] Create CNAME --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..5c51d0ca1 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +es6.devnode.cn \ No newline at end of file From cc7b806ac1788907ebc3bbc6349b3ff5103f389b Mon Sep 17 00:00:00 2001 From: Cloudyan Date: Mon, 1 Apr 2019 11:24:59 +0800 Subject: [PATCH 5/5] Update CNAME --- CNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CNAME b/CNAME index 5c51d0ca1..532a68c9d 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -es6.devnode.cn \ No newline at end of file +es6.deepjs.cn \ No newline at end of file