33 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk2ZA4SHTDcjs = require('./chunk-2ZA4SHTD.cjs');
require('./chunk-ORVFCRDG.cjs');
require('./chunk-ZBPRDZS4.cjs');
// src/nuxt.ts
function nuxt_default(options = {}, nuxt) {
var _a, _b, _c, _d, _e;
const nuxtApp = (this == null ? void 0 : this.nuxt) || nuxt;
if ((_a = nuxtApp == null ? void 0 : nuxtApp._version) == null ? void 0 : _a.startsWith("3.")) {
options.compiler = "vue3";
(_b = nuxtApp.options).typescript || (_b.typescript = {});
(_c = nuxtApp.options.typescript).tsConfig || (_c.tsConfig = {});
(_d = nuxtApp.options.typescript.tsConfig).compilerOptions || (_d.compilerOptions = {});
(_e = nuxtApp.options.typescript.tsConfig.compilerOptions).types || (_e.types = []);
nuxtApp.options.typescript.tsConfig.compilerOptions.types.push("unplugin-icons/types/vue");
}
nuxtApp.hook("webpack:config", (configs) => {
configs.forEach((config) => {
config.plugins = config.plugins || [];
config.plugins.unshift(_chunk2ZA4SHTDcjs.src_default.webpack(options));
});
});
nuxtApp.hook("vite:extend", async (vite) => {
vite.config.plugins = vite.config.plugins || [];
vite.config.plugins.push(_chunk2ZA4SHTDcjs.src_default.vite(options));
});
}
exports.default = nuxt_default;