]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: add copyright and license banner
authorEvan You <yyx990803@gmail.com>
Wed, 10 Jan 2024 05:58:33 +0000 (13:58 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 10 Jan 2024 06:00:00 +0000 (14:00 +0800)
close #10054

LICENSE
rollup.config.js

diff --git a/LICENSE b/LICENSE
index 15f1f7e7a490fec6e4a4016624325debfd9458a9..8fd17290c81906dc34d5a12c41609fcb9f810e62 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2018-present, Yuxi (Evan) You
+Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
index 29fd844b96099568fd3242281572afd878c55ed7..b6a098fa69e2e498363ae5b72595eb43ef8d3e3e 100644 (file)
@@ -131,6 +131,12 @@ function createConfig(format, output, plugins = []) {
     (isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) &&
     !packageOptions.enableNonBrowserBranches
 
+  output.banner = `/**
+* ${pkg.name} v${masterVersion}
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**/`
+
   output.exports = isCompatPackage ? 'auto' : 'named'
   if (isNodeBuild) {
     output.esModule = true