{
  "id": "18db1098eb848d0f6cd2b67c",
  "source": "solid:signals",
  "type": "github-document",
  "title": "dev",
  "content": "---\ntitle: DEV\nuse_cases: \u003e-\n  development debugging, build optimization, library development, conditional\n  code, dev-only features\ntags:\n  - development\n  - debugging\n  - builds\n  - optimization\n  - conditional\nversion: '1.0'\ndescription: \u003e-\n  Access development-only features in SolidJS with the DEV export. Enable\n  additional checks and debugging tools that are removed in production.\n---\n\n```ts\nimport { DEV } from \"solid-js\"\n\nconst DEV: object | undefined\n```\n\nOn the client, Solid provides (via [conditional exports](https://nodejs.org/api/packages.html#conditional-exports)) different builds depending on whether the **development** condition is set.\nDevelopment mode provides some additional checking — e.g. detecting accidental use of multiple instances of Solid — which are removed in production builds.\n\nIf you want code to run only in development mode (most useful in libraries), you can check whether the **DEV** export is defined.\nNote that it is always defined on the server, so you may want to combine with [isServer](/reference/rendering/is-server):\n\n```ts\nimport { DEV } from \"solid-js\"\nimport { isServer } from \"solid-js/web\"\n\nif (DEV \u0026\u0026 !isServer) {\n  console.log(...);\n}\n```",
  "url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/reference/rendering/dev.mdx",
  "metadata": {
    "path": "src/routes/reference/rendering/dev.mdx",
    "repo": "solidjs/solid-docs",
    "repo_url": "https://github.com/solidjs/solid-docs.git",
    "size": 1204,
    "source_type": "github"
  },
  "hash": "da0f514739b6746a03d997e6e6efc5819a88f6c10432ea859a2f7ca4e21a9e24",
  "timestamp": "2026-02-23T11:43:00.190283546+01:00"
}