CommonJS build issue with namespace imports (process and os) #32029
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When using a bundler to bundle a nodejs application to CommonJS, the bundling step fails because of star imports (namespace import) of node packages
Launching app fails because
rollup
will attempt to intorop the namespace defaults like soAccording to the rollup team, it's best to avoid star imports when possible. rollup/rollup#5559
You can basically achieve the same thing with
import process from 'node:process
.The text was updated successfully, but these errors were encountered: