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
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
We now (pulumi/pulumi#7764, pulumi/pulumi#8655) support the use of ECMAScript modules as Pulumi entrypoints. We support this natively in JavaScript and in pre-compiled TypeScript, and via some additional custom flags (using experimental Node.js loader features) for on-the-fly-compiler TypeScript.
At some point, we may want our templates to make this the default for all new projects. I don't think we can do that yet for TypeScript because the features we depend on our experimental, and have in practice seen breaking changes, so this would risk exposing users to breaking changes in Node.js in the future. Given that, I'm inclined to also leave JavaScript templates as is for now, so that JavaScript and TypeScript are consistent by default.
Once these Node.js features are sufficiently stable though, we can revisit this.
The text was updated successfully, but these errors were encountered:
Maybe we should create some of the basic templates with ESM? I was thinking about creating a guide, and it would be awesome if I could point to a template.
Hello!
Issue details
We now (pulumi/pulumi#7764, pulumi/pulumi#8655) support the use of ECMAScript modules as Pulumi entrypoints. We support this natively in JavaScript and in pre-compiled TypeScript, and via some additional custom flags (using experimental Node.js loader features) for on-the-fly-compiler TypeScript.
This also enables the use of
await
at top level in Pulumi programs as in pulumi/pulumi#5161 (comment).At some point, we may want our templates to make this the default for all new projects. I don't think we can do that yet for TypeScript because the features we depend on our experimental, and have in practice seen breaking changes, so this would risk exposing users to breaking changes in Node.js in the future. Given that, I'm inclined to also leave JavaScript templates as is for now, so that JavaScript and TypeScript are consistent by default.
Once these Node.js features are sufficiently stable though, we can revisit this.
The text was updated successfully, but these errors were encountered: