assetUrl.d.ts 551 B

123456789101112131415
  1. import { ASTNode } from './utils';
  2. export interface AssetURLOptions {
  3. [name: string]: string | string[];
  4. }
  5. export interface TransformAssetUrlsOptions {
  6. /**
  7. * If base is provided, instead of transforming relative asset urls into
  8. * imports, they will be directly rewritten to absolute urls.
  9. */
  10. base?: string;
  11. }
  12. declare const _default: (userOptions?: AssetURLOptions | undefined, transformAssetUrlsOption?: TransformAssetUrlsOptions | undefined) => {
  13. postTransformNode: (node: ASTNode) => void;
  14. };
  15. export default _default;