Optional
logenable logging of the input arguments and preferred loader, when DEBUG.LOG is ennabled.
when set to true
, the logs will show up in your console via console.log()
.
you may also provide your own custom logger function if you wish.
the default loader that the plugin's loader should use for unidentified content types.
if you would like to use esbuild's own default loader, set the value to "default"
.
Optional
acceptonly accept the following subset of loaders when auto content-detection is used for guessing the loader type.
if there is no intersection between the set of guessed loaders, and this set of acceptLoaders
,
then the default loader (defaultLoader) will be used as a fallback.
configuration options for the urlLoaderFactory function.