vtils

Home > types > PackageJson > ExportCondition

PackageJson.ExportCondition type

Conditions which provide a way to resolve a package entry point based on the environment.

Signature:

export type ExportCondition = LiteralUnion<
    		| 'import'
    		| 'require'
    		| 'node'
    		| 'deno'
    		| 'browser'
    		| 'electron'
    		| 'react-native'
    		| 'default',
    		string
    	>;

References: LiteralUnion