transform
steal-tools.transform
A function provided by transformImport that returns a transformed module or modules.
transform(moduleName, options)
Parameters
-
moduleName
=config.main{moduleName}OptionalThe module name to build.
-
options
{TransformOptions}OptionalOptions that configure how the files are compiled. These options overwrite the
pluginifierOptionsargument passed to transformImport.
Returns
{Promise<SourceObject>}
A promise for an object containing a string code property and a map that is the source map if the sourceMaps option is set to true.
Use
After getting
transformfrom transformImport you can call it, like:Most of these options are optional. For more information, read transformOptions.