-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Description
Description:
I'm proposing to add a new nodejs webpack builder that would be triggered by the presence of a webpack.config.js file.
There are two uses I can see:
- As a Node developer I want to use TypeScript or Babel to compile my code from a more recent version of Javascript to a version supported by AWS Lambda.
- As a Node developer I want to use tree shaking to reduce the size of my code.
The builder could be based on the existing nodejs npm builder. It would build the code using a command like npx webpack-cli app.ts -o ../.aws-ts/build/HelloWorldFunction/app.js --config ./webpack.config.js instead of using npm pack. The package.json would probably need to be copied independently.
The Serverless Framework uses the same approach (a serverless-webpack plugin) for TypeScript support through the webpack ts-loader.
piether, Jeremias-Tecnom, rowanu, michaelj-smith, hburrows and 2 more
Metadata
Metadata
Assignees
Labels
No labels