From: Evan You Date: Wed, 10 Jan 2024 05:58:33 +0000 (+0800) Subject: build: add copyright and license banner X-Git-Tag: v3.4.8~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60a57542bbf5d28ecf68fb493e0e93fbd36d27d;p=thirdparty%2Fvuejs%2Fcore.git build: add copyright and license banner close #10054 --- diff --git a/LICENSE b/LICENSE index 15f1f7e7a4..8fd17290c8 100644 --- 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 diff --git a/rollup.config.js b/rollup.config.js index 29fd844b96..b6a098fa69 100644 --- a/rollup.config.js +++ b/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