|
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
-
- var _chunkOYTCDAHIjs = require('./chunk-OYTCDAHI.js');
-
- // src/index.ts
- var _unplugin = require('unplugin');
-
-
-
-
-
- var _common = require('@vue-macros/common');
- function resolveOption(options) {
- const version = options.version || _common.detectVueVersion.call(void 0, );
- return {
- include: [_common.REGEX_VUE_SFC, _common.REGEX_SETUP_SFC],
- defaultLang: "ts",
- ...options,
- version
- };
- }
- var name = "unplugin-vue-setup-block";
- var src_default = _unplugin.createUnplugin.call(void 0,
- (userOptions = {}) => {
- const options = resolveOption(userOptions);
- const filter = _common.createFilter.call(void 0, options);
- return {
- name,
- enforce: "pre",
- transformInclude(id) {
- return filter(id);
- },
- transform(code, id) {
- return _chunkOYTCDAHIjs.transformSetupBlock.call(void 0, code, id, options.defaultLang);
- }
- };
- }
- );
-
-
-
- exports.src_default = src_default;
|