Closed xfournet closed 1 year ago
I'm also getting hit by this, can a publish be done with the fix commit - https://github.com/indexzero/nconf/commit/ce212b2f1dbf96cee001b5f621979c564638f0e7 ? 🙏
would love to see a publish of this as well!
yes, this would be good to backport and publish. my only hesitation is that defineGetter
is deprecated. We can probably replace it with Object.defineProperty()
instead.
If anyone still has this issue, you can work around it using this fix. https://gist.github.com/Jamie-BitFlight/d15ad615249d60b02dfb72e0162ad5f9
@mhamann defineGetter is what is currently used in nconf 0.12.0 and the patch don't change anything regarding that. You could probably review what is better in another issue. I created a backport PR in v0.x branch (#402). Would be possible to release a new 0.x version with the fix ?
nconf v0.12.1 has been released with this change.
Due to dynamic require of stores, esbuild cannot bundle nconf. See following warning when bundling with esbuild:
Since the list of builtin stores is static, they're is no need to make dynamic require.
Possible workaround: specify an esbuild inject scripts, eg
esbuild --bundle --inject:esbuild-inject.js src/index.js
with esbuild-inject.jsHowever it would be more convenient to avoid that.