TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CommonJS require for the browser in 1k

28 pointsby stu_kover 10 years ago

4 comments

cjover 10 years ago
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>
sirodohtover 10 years ago
How does it compare to browserify? Is it a drop-in replacement?
评论 #8962169 未加载
lechevalierd3onover 10 years ago
Would window.fetch help on saving precious bytes ?
stu_kover 10 years ago
If anyone has any questions, ask away!