Thread: https://twitter.com/heitor_lessa/status/1137361365818060800
- Local prototyping with hot-reloading and step through debugging: npm run watch
- Bundle, minify and valid structure for SAM package/deploy: npm run build
- Webpack is instructed to dynamically look up for
index.tswithinsrcfolder -- (src/function1/index.ts, src/function2/index.ts) - Webpack builds a bundle per function to
build/function1/index.js,build/function2/index.js... - SAM CodeUri is set to the build folder
build/function1