Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@harnessa-fe/unplugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessa-fe/unplugin

Unified build plugin for Harnessa-FE. Supports Vite, Rspack, esbuild, and Rollup via unplugin. Webpack users should use @harnessa-fe/webpack (native plugin) instead.

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

@harnessa-fe/unplugin

Unified build plugin core for Harnessa-FE. Powers the Vite, Rspack, esbuild, and Rollup adapters.

You normally do not install this directly — install the bundler-specific package instead:

Install (advanced)

pnpm add -D @harnessa-fe/unplugin

Usage

import { harnessaFE } from '@harnessa-fe/unplugin/vite';
// or '/rspack' '/esbuild' '/rollup'

Webpack users: install @harnessa-fe/webpack instead. The ./webpack subpath export has been removed because unplugin's webpack adapter serializes the plugin instance into loader options, which breaks thread-loader (the plugin holds a compiler reference and JSON.stringify trips on Compiler.root). See the changeset for details.

For custom integrations, import the raw factory:

import { unplugin, unpluginFactory } from '@harnessa-fe/unplugin';

Public API

  • unplugin — pre-built unplugin instance (call .vite() / .rspack() / etc.)
  • unpluginFactory — raw factory for fully custom adapters
  • transformJsx — JSX/TSX source transform with location attribute injection
  • transformVueSFC / transformVueTemplate — Vue SFC + template transforms
  • createMcpClient, installNodeLogCapture, createBuildIdentity, appendTokenQuery — internal building blocks used by @harnessa-fe/webpack to assemble a native plugin without going through unplugin's webpack adapter

Docs

License

MIT

FAQs

Package last updated on 22 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts