
\begin{DoxyCode}{0}
\DoxyCodeLine{import \{ runLoaders \} from "{}loader-\/runner"{};}
\DoxyCodeLine{}
\DoxyCodeLine{runLoaders(\{}
\DoxyCodeLine{    resource: "{}/abs/path/to/file.txt?query"{},}
\DoxyCodeLine{    // String: Absolute path to the resource (optionally including query string)}
\DoxyCodeLine{}
\DoxyCodeLine{    loaders: ["{}/abs/path/to/loader.js?query"{}],}
\DoxyCodeLine{    // String[]: Absolute paths to the loaders (optionally including query string)}
\DoxyCodeLine{    // \{loader, options\}[]: Absolute paths to the loaders with options object}
\DoxyCodeLine{}
\DoxyCodeLine{    context: \{ minimize: true \},}
\DoxyCodeLine{    // Additional loader context which is used as base context}
\DoxyCodeLine{}
\DoxyCodeLine{    readResource: fs.readFile.bind(fs)}
\DoxyCodeLine{    // A function to read the resource}
\DoxyCodeLine{    // Must have signature function(path, function(err, buffer))}
\DoxyCodeLine{}
\DoxyCodeLine{\}, function(err, result) \{}
\DoxyCodeLine{    // err: Error?}
\DoxyCodeLine{}
\DoxyCodeLine{    // result.result: Buffer | String}
\DoxyCodeLine{    // The result}
\DoxyCodeLine{}
\DoxyCodeLine{    // result.resourceBuffer: Buffer}
\DoxyCodeLine{    // The raw resource as Buffer (useful for SourceMaps)}
\DoxyCodeLine{}
\DoxyCodeLine{    // result.cacheable: Bool}
\DoxyCodeLine{    // Is the result cacheable or do it require reexecution?}
\DoxyCodeLine{}
\DoxyCodeLine{    // result.fileDependencies: String[]}
\DoxyCodeLine{    // An array of paths (files) on which the result depends on}
\DoxyCodeLine{}
\DoxyCodeLine{    // result.contextDependencies: String[]}
\DoxyCodeLine{    // An array of paths (directories) on which the result depends on}
\DoxyCodeLine{\}) }

\end{DoxyCode}


More documentation following... 