@sentry/nextjs
Version:
Official Sentry SDK for Next.js
48 lines • 1.29 kB
TypeScript
import type webpack from 'webpack';
export type LoaderThis<Options> = {
/**
* Path to the file being loaded
*
* https://webpack.js.org/api/loaders/#thisresourcepath
*/
resourcePath: string;
/**
* Function to add outside file used by loader to `watch` process
*
* https://webpack.js.org/api/loaders/#thisadddependency
*/
addDependency: (filepath: string) => void;
/**
* Marks a loader result as cacheable.
*
* https://webpack.js.org/api/loaders/#thiscacheable
*/
cacheable: (flag: boolean) => void;
/**
* Marks a loader as asynchronous
*
* https://webpack.js.org/api/loaders/#thisasync
*/
async: webpack.loader.LoaderContext['async'];
/**
* Return errors, code, and sourcemaps from an asynchronous loader
*
* https://webpack.js.org/api/loaders/#thiscallback
*/
callback: webpack.loader.LoaderContext['callback'];
} & ({
/**
* Loader options in Webpack 4
*
* https://webpack.js.org/api/loaders/#thisquery
*/
query: Options;
} | {
/**
* Loader options in Webpack 5
*
* https://webpack.js.org/api/loaders/#thisgetoptionsschema
*/
getOptions: () => Options;
});
//# sourceMappingURL=types.d.ts.map