closure serialization
sam-goodwin opened this issue · comments
Right now we use webpack
to do basic tree-shaking. I think pulumi's approach would be more efficient - they built their own closure serialization logic that will rip out only bits of the closure actually used at runtime (or AFAIK).
https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/closure/createClosure.ts#L217