For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/rspeedy.performance.removeconsole.md.
This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/rspeedy > Performance > removeConsole

Performance.removeConsole property

Whether to remove console.[methodName] in production build.

Signature:

removeConsole?: boolean | ConsoleType[] | undefined;

Default Value

false

Example 1

  • Remove all console methods
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  performance: {
    removeConsole: true,
  },
})

Example 2

  • Remove specific console methods
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  performance: {
    removeConsole: ['log', 'warn']
  },
})