JSPM

  • Created
  • Published
  • Downloads 33742
  • Score
    100M100P100Q130160F
  • License MIT

Internal Lexical utilities shared across packages. Do not import directly; no semver guarantees apply to its API.

Package Exports

  • @lexical/internal/devInvariant
  • @lexical/internal/devInvariant.js
  • @lexical/internal/formatDevErrorMessage
  • @lexical/internal/formatDevErrorMessage.js
  • @lexical/internal/formatDevWarningMessage
  • @lexical/internal/formatDevWarningMessage.js
  • @lexical/internal/formatProdErrorMessage
  • @lexical/internal/formatProdErrorMessage.js
  • @lexical/internal/formatProdWarningMessage
  • @lexical/internal/formatProdWarningMessage.js
  • @lexical/internal/invariant
  • @lexical/internal/invariant.js
  • @lexical/internal/version
  • @lexical/internal/version.js
  • @lexical/internal/warnOnlyOnce
  • @lexical/internal/warnOnlyOnce.js

Readme

@lexical/internal

[!WARNING] This package contains internal utilities shared across the Lexical packages: invariant/devInvariant, dev/prod error- and warning-message formatting, warnOnlyOnce, and the LEXICAL_VERSION constant. These are bound to the build's transforms and are inlined into every other package rather than shipped as a runtime dependency, so it is published only so the modules resolve through normal package resolution — including the source export condition used when developing against a linked checkout.

It is not a public API. Import from lexical and the @lexical/* feature packages instead. Nothing here follows semver and any export may change or disappear without notice.