From f6d5e43bcba691403ce551a388a89e01f5bc0a88 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 10 Feb 2022 21:44:35 +0100 Subject: [PATCH] Add banner options from Rollup config --- vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vite.config.js b/vite.config.js index b2ea4e6..da82255 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,6 @@ import { defineConfig } from "vite"; import * as path from "path"; +import pkg from "./package.json"; export default defineConfig({ esbuild: { @@ -14,5 +15,10 @@ export default defineConfig({ name: "Shareon", formats: ["es", "umd", "iife"], }, + rollupOptions: { + output: { + banner: `/*! ${pkg.name} v${pkg.version} */`, + }, + }, }, });