From 4e2a0a4401d06c2044a516aba5c3a7b531112914 Mon Sep 17 00:00:00 2001 From: Alberto Fernandez-Capel Date: Thu, 20 Jul 2023 10:28:00 +0200 Subject: [PATCH] Add ! to the copyright banner comment So that build tools like esbuild or rollup-plugin-license can detect the banner and keep the license in the minified output. The banner is only a few bytes, so bundle size is not a concern. Ref. https://github.com/evanw/esbuild/issues/2745 --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 82d117707..5073079dd 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,7 +3,7 @@ import typescript from "@rollup/plugin-typescript" import { version } from "./package.json" const year = new Date().getFullYear() -const banner = `/*\nTurbo ${version}\nCopyright © ${year} 37signals LLC\n */` +const banner = `/*!\nTurbo ${version}\nCopyright © ${year} 37signals LLC\n */` export default [ {