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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

CommonJS require for the browser in 1k

28 点作者 stu_k超过 10 年前

4 条评论

cj超过 10 年前
Here&#x27;s a simple implementation in 20 lines of code - I use this in production for our single page Backbone app (migrated away from Requirejs).<p><a href="https://gist.github.com/paton/ab27a1be7e843d220ee3" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;paton&#x2F;ab27a1be7e843d220ee3</a>
sirodoht超过 10 年前
How does it compare to browserify? Is it a drop-in replacement?
评论 #8962169 未加载
lechevalierd3on超过 10 年前
Would window.fetch help on saving precious bytes ?
stu_k超过 10 年前
If anyone has any questions, ask away!