Add support for config
named export From Configuration File
#3246
Labels
Milestone
config
named export From Configuration File
#3246
Related to #1503 and #3244. Specifically the comment in #1503 (comment)
A more robust way to export config object via your configuration file. We’ll encourage folks to do this from now on instead of returning an object in your configuration callback (or even the
set*Directory
methods to programmatically set directories).Setting directories data cascade (order of precedence):
--input
(overridesinput
from any other methods)--output
(overridesoutput
from any other methods)dir
property in return object from configuration callback (backwards compatibility)set*Directory
configuration API methods set*Directory Configuration API methods #1503config
export from configuration file with adir
object inside (this is the new thing)Examples
ESM
CommonJS
Update April 10: swapping this to be
config
instead ofdirectories
so that it works the same as the current return object. Switch your return to namedconfig
export instead.The text was updated successfully, but these errors were encountered: