Skip to content

Development build

Copy as Markdown

The "development" export condition selects a build of the player that writes warnings to the console. Every other build is silent and carries none of the warning text.

The warnings cover a mount without a table, a malformed JSON table, an unknown table version, the parts of a table that were left out, a file that needs a newer player, and classes that markup="keep" did not find.

Vite sets the condition in development. To set it yourself:

vite.config.ts
import { defineConfig } from "vite";
export default defineConfig({
resolve: { conditions: ["development"] },
});

Webpack takes the condition from resolve.conditionNames, and Node from --conditions=development. The messages of a failed file load (error.message) are written in every build.