@openhi/constructs 0.0.136 → 0.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -1469,10 +1469,11 @@ var DataStorePostgresReplica = class extends Construct6 {
1469
1469
  bundling: {
1470
1470
  minify: true,
1471
1471
  sourceMap: false,
1472
- // pg has conditional/optional deps (pg-native, pg-cloudflare) that
1473
- // historically misbehave when bundled by esbuild; keep it as a real
1474
- // node_module in the Lambda zip instead.
1475
- nodeModules: ["pg"]
1472
+ // pg's conditional optional deps (pg-native, pg-cloudflare) are
1473
+ // marked external so esbuild does not try to resolve them — pg's
1474
+ // runtime code wraps the requires in try/catch and falls back to
1475
+ // the pure-JS client when they are not present.
1476
+ externalModules: ["pg-native", "pg-cloudflare"]
1476
1477
  }
1477
1478
  });
1478
1479
  this.cluster.secret.grantRead(this.replicationFunction);