🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sohu-bpd/unplugin-banner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sohu-bpd/unplugin-banner

An example unplugin-based banner plugin for Vite, Rollup, webpack, Rspack, and Rolldown.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@sohu-bpd/unplugin-banner

Example unplugin-based banner plugin for Vite, Rollup, webpack, Rspack, and Rolldown.

Host Support

The package root exports the unplugin factory object. In app config, prefer the host-specific subpaths:

  • @sohu-bpd/unplugin-banner/vite
  • @sohu-bpd/unplugin-banner/rollup
  • @sohu-bpd/unplugin-banner/webpack
  • @sohu-bpd/unplugin-banner/rspack
  • @sohu-bpd/unplugin-banner/rolldown

Rsbuild should use the /rspack entry through tools.rspack; there is no separate ./rsbuild export.

Usage

Vite

import { defineConfig } from "vite";
import banner from "@sohu-bpd/unplugin-banner/vite";

export default defineConfig({
  plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
});

Rollup

import banner from "@sohu-bpd/unplugin-banner/rollup";

export default {
  plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
};

Other Hosts

  • Use @sohu-bpd/unplugin-banner/webpack in webpack configs.
  • Use @sohu-bpd/unplugin-banner/rspack in Rspack configs and in Rsbuild via tools.rspack.plugins.
  • Use @sohu-bpd/unplugin-banner/rolldown in Rolldown configs.

Rsbuild

import banner from "@sohu-bpd/unplugin-banner/rspack";

export default {
  tools: {
    rspack: {
      plugins: [banner({ banner: "built with @sohu-bpd/unplugin-banner" })]
    }
  }
};

Options

  • banner: required string prepended as a block comment to transformed script modules

FAQs

Package last updated on 03 Apr 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