Constructs project configuration.
Project initialization options.
Promise resolved to project output configuration.
Reference to itself.
Root project directory.
Root source files directory.
Detects whether this project supports ESM.
true
when --experimental-vm-modules
command-line option passed to Node.js process.
Base configurations of project development tools.
Always refers itself.
Gains value of the given kind
or creates one if not yet exists.
Caches the value once constructed.
Kind of values to gain. This function is used as a cache key. It is called to create
Gained value.
Loads arbitrary configuration represented as ESM module.
The module has to export configuration as default export.
Configuration module specifier relative to project root.
Optional
defaultConfig: TConfigDefault configuration used when module not found.
Promise resolved to loaded configuration, or to undefined
if no configuration file found.
Static
loadLoads project configuration from specified module.
The default export of target ESM module treated as project specifier, i.e. either as project configuration instance, or its initialization options.
If no configuration module found, then new project configuration created.
Configuration module specifier relative to current working dir. ./project.config.js
by default.
Promise resolved to project configuration.
Static
ofGains specified project configuration.
Project configuration can be specified by one of:
Optional
spec: ProjectSpecProject configuration specifier.
Project configuration instance.
Project configuration.