'use strict'; const node_url = require('node:url'); const kit = require('@nuxt/kit'); const runtimeDir = node_url.fileURLToPath( new URL("../src/runtime", (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('module.cjs', document.baseURI).href))) ); const module$1 = kit.defineNuxtModule({ meta: { name: "gigcodes-nuxt", configKey: "gigcodesNuxt" }, async setup(_options, nuxt) { const { resolve } = kit.createResolver((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('module.cjs', document.baseURI).href))); await kit.addComponentsDir({ path: resolve("./runtime/components/button") }); await kit.addComponentsDir({ path: resolve("./runtime/components/dossier") }); await kit.addComponentsDir({ path: resolve("./runtime/components/fieldtypes") }); await kit.addComponentsDir({ path: resolve("./runtime/components/others") }); kit.addPlugin({ src: resolve("./runtime/plugins") }); await kit.installModule("@nuxtjs/tailwindcss", { configPath: resolve(runtimeDir, "tailwind.config") }); nuxt.options.build.transpile.push(runtimeDir); nuxt.options.css.push(resolve(runtimeDir, "sass/tailwind.scss")); } }); module.exports = module$1;