You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
@@ -72,32 +72,39 @@ I want to be clear: I respect a LOT the work of the CDK team, and especially [@j
72
72
73
73
This is a list of features I thought could be interesting to users. If you need on of them, please contribute to the project.
74
74
75
-
-[ ] Allow passing rollup options, like externals
76
-
-[ ] Allow using TypeScript, see https://github.com/rollup/plugins/tree/master/packages/typescript
77
-
-[ ] Allow using babel, if you need preset-env
78
-
-[ ] Allow passing babel options
79
-
-[ ] Allow usage without the need of `entry`: `new NodejsFunction(this, "slack-notifications-lambda");` that would mimic https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html#nodejs-function
80
-
-[ ] Generate a bundle where entry is moved to /index.js
81
-
-[ ] Use [jsii](https://github.com/aws/jsii) to build for other languages
82
-
-[ ] Ask CDK team if this could live under their repositories
83
-
-[ ] Allow native modules, with option `nativeModules`. They would have to be installed into a temp folder with `npm_config_arch` and `npm_config_platform` and aliased in rollup configuration
75
+
-[ ] Test/Get feedback on TypeScript support
76
+
-[ ] Get feedback on monorepo support
77
+
-[ ] Allow passing webpack/babel options/a function that can update the full webpack configuration
78
+
-[ ] Allow native modules/passing externals, with option `nativeModules` or `externals`. They would have to be installed into a temp folder with `npm_config_arch` and `npm_config_platform` and aliased in webpack configuration/or considered as externals. Externals and nativeModules seems related options but may be completely different
79
+
-[ ] Use [jsii](https://github.com/aws/jsii) to build the construct for other languages
84
80
-[ ] Add tests
85
-
-[ ] Monorepo support
86
-
-[ ] If necessary/beneficial, implement Rollup cache, see https://github.com/drg-adaptive/serverless-rollup-plugin and https://github.com/rollup/rollup/issues/2182
87
-
-[ ] Other ideas?
81
+
-[ ] (if current way buggy): force people to provide aliases instead of considering cwd as base node_module
82
+
-[ ] Allow usage without the need of `entry`: `new NodejsFunction(this, "slack-notifications-lambda");` that would mimic https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html#nodejs-function
83
+
-[ ]
84
+
-[x] Generate a bundle where entry is moved to /main.js
85
+
-[x] Allow using TypeScript
86
+
-[x] use webpack and babel cache
87
+
-[x] remove webpackconfig from bundle
88
+
-[x] pass runtime to babel target
89
+
-[x] cdk synth generates different builds even when the lambda code does not changes, issue?
90
+
-[x] Allow using babel, if you need preset-env
91
+
-[x] add babel preset env by default
92
+
-[ ]~add bundling timing information to output console~ note: this would pollute cdk synth
93
+
-[ ]~Ask CDK team if this could live under their repositories~ Better be just community based
94
+
-[ ] Other ideas? Open an issue
88
95
89
96
## How to make changes and test locally
90
97
91
98
```
92
99
// fork and clone
93
-
cd aws-lambda-nodejs-rollup
100
+
cd aws-lambda-nodejs-webpack
94
101
yarn
95
102
yarn link
96
103
yarn start
97
104
98
105
# in another terminal and project where you want to test changes
99
-
yarn link aws-lambda-nodejs-rollup
100
-
# cdk commands will now use your local aws-lambda-nodejs-rollup
106
+
yarn link aws-lambda-nodejs-webpack
107
+
# cdk commands will now use your local aws-lambda-nodejs-webpack
0 commit comments