Optionalpatternspecify the regex pattern used for searching for import.meta.resolve("...") statements in you javascript/typescript source files.
the regex matches found here will be passed on to your extractImportPath function.
Optionalextractthe function you provide here complements your regex pattern, by extracting the path from it.
you may also use this opportunity for interpreting the path associated with your resource that is to be imported.
if your function returns undefined, it will hint the import-meta plugin to skip that particular match from being bundled.
a function that extracts the import path inside the import.meta.resolve("...") statement selected by the default pattern.
Optionalinsertthe function you provide here is used for generating a string to re-insert back into your emitted js-file's
import.meta.resolve statement (which was originally selected from the pattern).
your function should accept the output path of the linked bundled resource,
and then enclose it with necessary stuff to turn it into a proper statement/expression.
Optionaltransformspecify which loaded files/resoruces will need to be intercepted by the import-meta plugin.
setup configuration options for the importmetaPluginSetup.
Default Value
defaultImportmetaPluginSetupConfig.