版博士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-ARU65NFH.js 1.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";Object.defineProperty(exports, "__esModule", {value: true});
  2. var _chunkSC6F2W53js = require('./chunk-SC6F2W53.js');
  3. // src/index.ts
  4. var _unplugin = require('unplugin');
  5. var _common = require('@vue-macros/common');
  6. function resolveOption(options) {
  7. const version = options.version || _common.detectVueVersion.call(void 0, );
  8. return {
  9. include: [
  10. _common.REGEX_VUE_SFC,
  11. _common.REGEX_SETUP_SFC,
  12. /\.(vue|setup\.[cm]?[jt]sx?)\?vue/
  13. ],
  14. version,
  15. ...options
  16. };
  17. }
  18. var name = "unplugin-vue-define-render";
  19. var src_default = _unplugin.createUnplugin.call(void 0,
  20. (userOptions = {}) => {
  21. const options = resolveOption(userOptions);
  22. const filter = _common.createFilter.call(void 0, options);
  23. return {
  24. name,
  25. enforce: "post",
  26. transformInclude(id) {
  27. return filter(id);
  28. },
  29. transform(code, id) {
  30. return _chunkSC6F2W53js.transformDefineRender.call(void 0, code, id);
  31. }
  32. };
  33. }
  34. );
  35. exports.src_default = src_default;