Skip to content

Cannot use defer with esbuild (fix: export defer from config) #740

@ztrange

Description

@ztrange

Describe the bug
Since esbuild is only able to import stuff from the package's main field, if one tries to use defer in an application and bundle it with esbuild for node, it fails.

Submitting a PR for a failing test for the test suite is ideal.

Expected behavior
Ideally be able to import defer from the main package import, so that bundlers are able to find it.

Please tell us about your environment:

  • node-config version: 3.3.9
  • node-version: 18

Other information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions