版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chunk-NNB3ELLW.mjs 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import {
  2. transformDefineRender
  3. } from "./chunk-VAMOGGAI.mjs";
  4. // src/index.ts
  5. import { createUnplugin } from "unplugin";
  6. import {
  7. REGEX_SETUP_SFC,
  8. REGEX_VUE_SFC,
  9. createFilter,
  10. detectVueVersion
  11. } from "@vue-macros/common";
  12. function resolveOption(options) {
  13. const version = options.version || detectVueVersion();
  14. return {
  15. include: [
  16. REGEX_VUE_SFC,
  17. REGEX_SETUP_SFC,
  18. /\.(vue|setup\.[cm]?[jt]sx?)\?vue/
  19. ],
  20. version,
  21. ...options
  22. };
  23. }
  24. var name = "unplugin-vue-define-render";
  25. var src_default = createUnplugin(
  26. (userOptions = {}) => {
  27. const options = resolveOption(userOptions);
  28. const filter = createFilter(options);
  29. return {
  30. name,
  31. enforce: "post",
  32. transformInclude(id) {
  33. return filter(id);
  34. },
  35. transform(code, id) {
  36. return transformDefineRender(code, id);
  37. }
  38. };
  39. }
  40. );
  41. export {
  42. src_default
  43. };