transform.d.ts 540 B

1234567891011121314
  1. import { Span } from '../../../trace';
  2. import { NextJsLoaderContext } from './types';
  3. export default function transform(this: NextJsLoaderContext, source: string, inputSourceMap: object | null | undefined, loaderOptions: any, filename: string, target: string, parentSpan: Span): {
  4. code: string;
  5. map: {
  6. version: number;
  7. sources: string[];
  8. names: string[];
  9. sourceRoot?: string | undefined;
  10. sourcesContent?: string[] | undefined;
  11. mappings: string;
  12. file: string;
  13. } | null;
  14. };