【文件属性】:
文件名称:es6-debug-webstorm:如何在Webstorm中调试ES6(使用gulp)
文件大小:186KB
文件格式:ZIP
更新时间:2021-02-05 01:41:53
javascript debugging es6 es2015 webstorm
在WebStorm中调试ES6
简短的提醒自己如何在ES6的WebStorm中进行调试。 如果它也对您有帮助,那就太好了! ;-)
使用的文件夹结构:
root
|-- src
|-- index.js
|-- sample.js
.babelrc
gulpfile.babel.js
package.json
.babelrc内容:
{
"presets" : [ "es2015" ]
}
下面描述的设置使用gulp 3.x将ES6文件(包括源映射)转换为ES5,然后可以在WebStorm中使用它们调试ES6。
注意: gulp 4.0发布后,必须进行一些更改,而gu
【文件预览】:
es6-debug-webstorm-master
----.gitignore(1KB)
----.babelrc(26B)
----package.json(550B)
----src()
--------index.js(120B)
--------sample.js(92B)
----dist()
--------index.js(174B)
--------sample.js(402B)
--------index.js.map(449B)
--------sample.js.map(423B)
----README.md(3KB)
----gulpfile.babel.js(617B)
----docs()
--------images()
----test()
--------index.js(444B)
----.editorconfig(676B)