]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
feat: bundle file add banner feat/add-banner 795/head
authorbtea <2356281422@qq.com>
Tue, 5 Aug 2025 08:17:16 +0000 (16:17 +0800)
committerbtea <2356281422@qq.com>
Tue, 5 Aug 2025 08:17:16 +0000 (16:17 +0800)
rolldown.config.ts

index ed1c51cbf594945a3715fd40a20a5f9a0d658803..6ee4e497f6d066ede8dadaf31851b5780c2c523b 100644 (file)
@@ -1,9 +1,8 @@
 import fs from 'node:fs'
 import path from 'node:path'
-import { RolldownPlugin } from 'rolldown'
-
-import { defineConfig } from 'rolldown'
+import { defineConfig, RolldownPlugin } from 'rolldown'
 import license from 'rollup-plugin-license'
+import packageJson from './package.json' with { type: 'json' }
 
 const CORE_LICENSE = `MIT License
 
@@ -152,6 +151,7 @@ export default defineConfig({
   output: {
     format: 'esm',
     file: 'bundle.js',
+    banner: `/*! create-vue v${packageJson.version} | MIT */`,
   },
   platform: 'node',
   plugins: [