���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
unimport
/
dist
/
Viewing: unplugin.mjs
import { promises } from 'node:fs'; import { createUnplugin } from 'unplugin'; import { createFilter } from '@rollup/pluginutils'; import MagicString from 'magic-string'; import { c as createUnimport } from './shared/unimport.3d427447.mjs'; import './shared/unimport.b860d1ad.mjs'; import 'pathe'; import 'mlly'; import 'strip-literal'; import 'node:os'; import 'pkg-types'; import 'node:process'; import 'local-pkg'; import 'node:fs/promises'; import 'node:path'; import 'node:url'; import 'fast-glob'; import 'scule'; const defaultIncludes = [/\.[jt]sx?$/, /\.vue$/, /\.vue\?vue/, /\.svelte$/]; const defaultExcludes = [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/]; function toArray(x) { return x == null ? [] : Array.isArray(x) ? x : [x]; } const unplugin = createUnplugin((options = {}) => { const ctx = createUnimport(options); const filter = createFilter( toArray(options.include || []).length ? options.include : defaultIncludes, options.exclude || defaultExcludes ); const dts = options.dts === true ? "unimport.d.ts" : options.dts; const { autoImport = true } = options; return { name: "unimport", enforce: "post", transformInclude(id) { return filter(id); }, async transform(code, id) { const s = new MagicString(code); await ctx.injectImports(s, id, { autoImport }); if (!s.hasChanged()) return; return { code: s.toString(), map: s.generateMap() }; }, async buildStart() { await ctx.init(); if (dts) return promises.writeFile(dts, await ctx.generateTypeDeclarations(), "utf-8"); } }; }); export { unplugin as default, defaultExcludes, defaultIncludes };
Coded With 💗 by
0x6ick Mod By V1rus_Alfa