Skip to content

Commit

Permalink
Add ! to the copyright banner comment
Browse files Browse the repository at this point in the history
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. evanw/esbuild#2745
  • Loading branch information
afcapel committed Jul 20, 2023
1 parent 151aca2 commit 4e2a0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -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 [
{
Expand Down

0 comments on commit 4e2a0a4

Please sign in to comment.