ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
92.33k stars 49.52k forks source link

请问如何在ant-design react中使用es7的async和await的 #1611

Closed gakaki closed 8 years ago

gakaki commented 8 years ago

特别提示:报告 bug 前请确保你的问题是可复现的,并务必提供复现步骤,否则恕难解决。

try { 9 | let url = "http://127.0.0.1:8360/adminapi/order/list";

10 | let response = await fetch(url); | ^ 11 | let data = response.json(); 12 | console.log(data); 13 | } catch(e) {

如此这般webpack便会报错

afc163 commented 8 years ago

trace on https://github.com/ant-tool/atool-build/issues/153

lock[bot] commented 6 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.