TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Webpack 2, RC 4

64 点作者 jfmercer超过 8 年前

5 条评论

seniorsassycat超过 8 年前
I recently setup a typescript &gt; webpack project and I was really disappointed with the dev-tools debugging experience.<p>Webpack renames imported bindings, so<p><pre><code> import {foo} from &#x27;.&#x2F;bar&#x27;; </code></pre> becomes something like this<p><pre><code> let __webpack_require_foo_bar = _webpack_modules[5 &#x2F;* foo *&#x2F;].bar; </code></pre> So if you are paused in the debugger and want to use foo in a watch statement, or use it in a computation you&#x27;ll have to reference the real source instead of the source maps.<p>I found questions on SO, and it seems like a known and accepted problem, but I know I won&#x27;t be able to sell my team on Webpack because of this.
评论 #13393073 未加载
评论 #13393102 未加载
评论 #13393376 未加载
评论 #13392817 未加载
评论 #13393932 未加载
jfmercer超过 8 年前
According to sokra, this ought to be the final rc. From the release notes: &quot;This is probably the last RC. We released it as final test. If no critial bugs are discovered, we release 2.2.0 in &lt; 10 days.&quot;
k__超过 8 年前
I tried the dynamic import&#x2F;require once and it was really nice.<p>I could just write a normal SPA and require some stuff in every route, so the client only downloads the code that is used for the current page and things worked fine without extras needed.
评论 #13393123 未加载
VMG超过 8 年前
Aaaand github unicorns..
评论 #13392021 未加载
评论 #13391943 未加载
AznHisoka超过 8 年前
Looks like there is some connectivity issues in OVH as well.. not sure if related?