Migration notes
The package build has moved from create-react-library / microbundle-crl to Vite library mode.
Package artifacts
Published package artifacts:
dist/index.jsfor ESM imports;dist/index.cjsfor CommonJS require;dist/index.d.tsfor TypeScript types;dist/index.cssfor backward-compatible explicit CSS imports.
The package uses exports for the public entry points:
"."for import, require, and types;"./style.css"for explicit CSS import;"./dist/index.css"for legacy CSS import compatibility.
CSS
CSS is injected automatically by default. Importing the package once adds a browser style tag with the id react-chessboard-ui-styles.
Recommended usage:
import { ChessBoard } from "react-chessboard-ui";
Manual CSS import is optional. Existing code continues to work:
import "react-chessboard-ui/style.css";
// Legacy path, still supported:
import "react-chessboard-ui/dist/index.css";
Compatibility
The public component API did not change. This is not a breaking change for users who already imported CSS manually, because the old CSS path remains supported.
If styles are missing while using an older package version, import react-chessboard-ui/dist/index.css manually or upgrade to a version with automatic style injection.