版博士V2.0程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

46 řádky
1.7 KiB

  1. import { MagicString } from '@vue-macros/common';
  2. import { Program } from '@babel/types';
  3. import { T as TemplateContent, C as CustomBlocks } from './index-0dd2e877.js';
  4. export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index-0dd2e877.js';
  5. import { ElementNode, NodeTransform, RootNode } from '@vue/compiler-dom';
  6. import 'unplugin';
  7. declare function getChildrenLocation(node: ElementNode): [number, number] | undefined;
  8. interface VueQuery {
  9. vue?: boolean;
  10. src?: string;
  11. type?: 'script' | 'template' | 'style' | 'custom';
  12. index?: number;
  13. lang?: string;
  14. raw?: boolean;
  15. url?: boolean;
  16. scoped?: boolean;
  17. }
  18. /**
  19. * Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
  20. */
  21. declare function parseVueRequest(id: string): {
  22. filename: string;
  23. query: VueQuery;
  24. };
  25. declare function transformTemplateIs(s: MagicString): NodeTransform;
  26. declare function preTransform(code: string, id: string, templateContent: TemplateContent): {
  27. code: string;
  28. map: any;
  29. } | undefined;
  30. declare function preTransformMainTemplate({ s, root, node, id, templateContent, }: {
  31. s: MagicString;
  32. root: RootNode;
  33. node: ElementNode;
  34. id: string;
  35. templateContent: TemplateContent;
  36. }): void;
  37. declare function postTransform(code: string, id: string, customBlocks: CustomBlocks): {
  38. code: string;
  39. map: any;
  40. } | undefined;
  41. declare function postTransformMainEntry(program: Program, id: string, customBlocks: CustomBlocks): void;
  42. export { VueQuery, getChildrenLocation, parseVueRequest, postTransform, postTransformMainEntry, preTransform, preTransformMainTemplate, transformTemplateIs };