@dazl/dev
v1.7.0
Published
Dazl development time utilities.
Readme
@dazl/dev
Dazl development time utilities.
JSX Runtime
This package exposes entrypoints (mainly ./jsx-dev-runtime) so it can be used as jsxImportSource.
Its jsxDEV keeps the JSX source locations available on window.__propsToSource.
Environment variables
Source tracking can be controlled with the following environment variables. These flags only affect React Server Components (RSCs):
DAZL_RSC_SOURCE_TRACKING_ENABLED— RSC source tracking is off by default; set totrueto enable it. When nottrue, the originaljsxDEVis used for server components and nodata-dazl-sourcepatching is applied.DAZL_RSC_SOURCE_TRACKING_DISABLED_ALL_COMPONENTS— set totrueto disable RSC source tracking for all components (function types), while host elements such asdivremain tracked.DAZL_RSC_SOURCE_TRACKING_DISABLED_COMPONENTS— a comma-separated list of componentdisplayName/namevalues (host tag names such asdivalso match) to disable RSC source tracking for specific components only.
License
MIT
