Allows custom conditions.
OptionalbrowserEntry point for browser environments.
OptionalbunEntry point for Bun runtime.
OptionaldefaultGeneric fallback that always matches. Must be the last condition.
OptionaldenoEntry point for Deno runtime.
OptionaldevelopmentEntry point for development builds. Used by bundlers to provide development-specific code.
OptionalelectronEntry point for Electron main process.
OptionalimportEntry point when loaded via import or import().
OptionalnodeEntry point for any Node.js environment.
Optionalnode-Entry point for Node.js addon modules.
OptionalproductionEntry point for production builds. Used by bundlers to provide production-optimized code.
Optionalreact-Entry point for React Native.
OptionalrequireEntry point when loaded via require().
OptionaltypesTypeScript type definitions entry point.
OptionalworkerEntry point for Worker environments (Web Workers, Service Workers).
Conditional export entry for the
exportsfield. Allows specifying different entry points based on conditions likeimport,require,node,browser, etc.See
https://nodejs.org/api/packages.html#conditional-exports