Implement CDN module service
Opened this issue · 0 comments
divmain commented
- similar to browserify-as-a-service: https://github.com/jfhbrook/wzrd.in
- use serverless and AWS lambda https://github.com/serverless/serverless
- a GET can look like:
http://cdn.interlockjs.com/h1/package/babylon@6.7.0
, will redirect tohttp://cdn.interlockjs.com/h1/SOME_LONG_BUNDLE_HASH
http://cdn.interlockjs.com/h2/package/babylon@6.7.0
will redirect tohttp://cdn.interlockjs.com/h2/SOME_LONG_MODULE_HASH
TBD:
- Will previously un-requested packages be generated on the fly, or should the CDN repo house all the included libraries explicitly?
- If pre-compilation is the case, everything can be pushed to the CDN provider and the AWS component removed.