跳到正文

Interface: ExportsOptions

Defined in: src/features/pkg/exports.ts:11

Properties

all?

ts
optional all: boolean;

Defined in: src/features/pkg/exports.ts:22

Exports for all files.


customExports()?

ts
optional customExports: (exports, context) => Awaitable<Record<string, any>>;

Defined in: src/features/pkg/exports.ts:24

Parameters

exports

Record<string, any>

context
chunks

ChunksByFormat

isPublish

boolean

pkg

PackageJson

Returns

Awaitable<Record<string, any>>


devExports?

ts
optional devExports: string | boolean;

Defined in: src/features/pkg/exports.ts:17

Generate exports that link to source code during development.

  • string: add as a custom condition.
  • true: all conditions point to source files, and add dist exports to publishConfig.

Released under the MIT License.