diff --git a/dev-packages/rollup-utils/plugins/npmPlugins.mjs b/dev-packages/rollup-utils/plugins/npmPlugins.mjs index 5f577507b102..8d0d454f2e27 100644 --- a/dev-packages/rollup-utils/plugins/npmPlugins.mjs +++ b/dev-packages/rollup-utils/plugins/npmPlugins.mjs @@ -97,9 +97,8 @@ export function makeDebuggerPlugin(hookName) { */ export function makeCleanupPlugin() { return cleanup({ - // line endings are unix-ized by default - comments: 'all', // comments to keep - compactComments: 'false', // don't remove blank lines in multi-line comments + // Keep comments containing `Copyright` and `@license` + comments: ['license', /Copyright/], maxEmptyLines: 1, extensions: ['js', 'jsx', 'ts', 'tsx'], });