This project demonstrates how to bundle multiple independent Node.js functions (like functionA, functionB) using Webpack, PNPM workspaces, and Babel.
Each function lives in its own folder under packages/, and is bundled separately into the dist/ folder.
This will add all dependencies according to their respective packages
pnpm installRun build command in root directory
This will generate build files in root directory for all packages together
pnpm build
This will generate build files in specific package, you can use functionB as well. According to your package you can mention build commands in package.json file
pnpm build:functionA
I have targeted functionC from dist folder for start command, on starting command it will run from build files. You can modify commands accordingly in package.json
pnpm start