Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 519 Bytes

File metadata and controls

22 lines (16 loc) · 519 Bytes

remove-console

@swc/plugin-remove-console strips console.* calls from your production builds, helping to reduce bundle size and avoid leaking debug information to end users. You can optionally exclude specific console methods (e.g. console.error) from removal. See https://nextjs.org/docs/architecture/nextjs-compiler#remove-console for more information.

Config

["@swc/plugin-remove-console"]

or

[
  "@swc/plugin-remove-console",
  {
    "exclude": ["error"]
  }
]

${CHANGELOG}