nervous-systems / cljs-lambda

Utilities around deploying Clojurescript functions to AWS Lambda
The Unlicense
311 stars 34 forks source link

Look into deferring all require() calls to the handler body #89

Open moea opened 7 years ago

moea commented 7 years ago

Something like this in the none/simple templates:

{{#module}}
{{#function}}
exports.{{export}} = function(event, ctx, cb) {
  goog.require("{{name}}");
  {{js-name}}(event, ctx, cb);
}
{{/function}}
{{/module}}