feat(core): support TypeScript + ESM configuration (#9317)

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Chongyi Zheng 2023-10-13 20:46:03 -04:00 committed by GitHub
parent 336a44f3ea
commit 45f1a669b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
126 changed files with 2054 additions and 914 deletions

View file

@ -52,6 +52,7 @@ export {
PluginVersionInformation,
Preset,
PresetConfig,
PresetConfigDefined,
PresetModule,
OptionValidationContext,
ThemeConfigValidationContext,

View file

@ -26,11 +26,9 @@ export type PluginConfig =
| false
| null;
export type PresetConfig =
| string
| [string, {[key: string]: unknown}]
| false
| null;
export type PresetConfigDefined = string | [string, {[key: string]: unknown}];
export type PresetConfig = PresetConfigDefined | false | null;
/**
* - `type: 'package'`, plugin is in a different package.