mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Currently we are only strip all comments properly when `swcMinify: false` is set although the default is to use `swcMinify` which can cause confusion with these two modes not matching comments handling. This updates the default to match comment stripping between the two and also adds an experimental config to allow toggling this regardless of which minifier is being used. x-ref: [slack thread](https://vercel.slack.com/archives/C0676QZBWKS/p1722444791037279) x-ref: NEXT-3642
19 lines
334 B
TypeScript
19 lines
334 B
TypeScript
/**
|
|
* My JSDoc comment that should be minified away
|
|
*
|
|
* @author Example One <[email protected]>
|
|
* @author Example Two <[email protected]>
|
|
* @copyright 2024 Vercel Inc
|
|
*/
|
|
class TestClass {
|
|
static text = 'hello world'
|
|
}
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<p>{TestClass.text}</p>
|
|
</div>
|
|
)
|
|
}
|