Просмотр исходного кода

build: add copyright and license banner

close #10054
Evan You 2 лет назад
Родитель
Сommit
d60a57542b
2 измененных файлов с 7 добавлено и 1 удалено
  1. 1 1
      LICENSE
  2. 6 0
      rollup.config.js

+ 1 - 1
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

+ 6 - 0
rollup.config.js

@@ -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