aws cloudfront functions are a powerful tool for running lightweight javascript code at the edge, allowing you to manipulate requests and responses. however, aws requires these functions to be...
aws cloudfront functions需使用es5 javascript,限制了typescript的优势。本文介绍如何将typescript转译为es5,包括配置编译器、自定义转换器和构建脚本,以便在开发和测试中享受typescript的好处,同时满足aws的部署要求。