Skip to content

Commit 84fc0fe

Browse files
committed
feat: bundle file add banner
1 parent 232474a commit 84fc0fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rolldown.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
3-
import { RolldownPlugin } from 'rolldown'
4-
5-
import { defineConfig } from 'rolldown'
3+
import { defineConfig, RolldownPlugin } from 'rolldown'
64
import license from 'rollup-plugin-license'
5+
import packageJson from './package.json' with { type: 'json' }
76

87
const CORE_LICENSE = `MIT License
98
@@ -152,6 +151,7 @@ export default defineConfig({
152151
output: {
153152
format: 'esm',
154153
file: 'bundle.js',
154+
banner: `/*! create-vue v${packageJson.version} | MIT */`,
155155
},
156156
platform: 'node',
157157
plugins: [

0 commit comments

Comments
 (0)