@lynx-js/react-webpack-plugin@0.9.5
Patch Changes
-
Support enabling preact devtools in production via the
REACT_DEVTOOLenvironment variable. (#2880)By default
@lynx-js/preact-devtoolsis aliased away in production builds. Setting theREACT_DEVTOOLenvironment variable now:- keeps a user-imported
@lynx-js/preact-devtoolsfrom being stripped; - defines
__REACT_DEVTOOL__, which gates the dev-only runtime hooks devtools depends on (such asinjectLepusMethods) so they also run in production; - keeps function/class names during minification (
keep_fnames/keep_classnames), which devtools needs to resolve component names (type.name) and to reconstruct the hook tree (it matches minified stack frames by function name).
@lynx-js/react/debugremains development-only. - keeps a user-imported