chore(config): adjust rollup config to preserve license header to minified JavaScript (#6777)

This commit is contained in:
Willian Agostini 2025-02-09 06:15:25 -03:00 committed by GitHub
parent 30966a79cb
commit 4a3e26cf65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ const buildConfig = ({es5, browser = true, minifiedVersion = true, alias, ...con
export default async () => {
const year = new Date().getFullYear();
const banner = `// Axios v${lib.version} Copyright (c) ${year} ${lib.author} and contributors`;
const banner = `/*! Axios v${lib.version} Copyright (c) ${year} ${lib.author} and contributors */`;
return [
// browser ESM bundle for CDN