The vanilla TS implementation doesn't use the ESM loader. You need to add this to wire it in.
a
abundant-fall-26464
09/04/2023, 11:35 AM
Ah, got it. I’ll probably stick to CJS builds then.
Less configuration for other teams, as they can begin with the normal starter templates. (guess that’s another thing I’d have to look into as well, templates to bake in the ESM loader 😅 )
Thanks for the info!
Do you have any recommendations for build tools for this usecase? Like tsup vs. parcel.
l
little-cartoon-10569
09/04/2023, 8:10 PM
No, I don't know what either of those are. I've never needed anything more than npm or yarn.
d
dry-pilot-49577
09/19/2023, 12:37 AM
A few weeks late on this, but we use tsup in our monorepo without any issues for libraries (and esbuild for our lambdas)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.