You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _DEBUG is only defined when building plugins / bundles, so the #if _DEBUG blocks are always removed in packages' default exports. If users are using PixiJS with a bundler, they will never recieve deprecation warnings in #if _DEBUG blocks.
For example, in 7.1.0-alpha, the user will never recieve the deprecation warning with:
The text was updated successfully, but these errors were encountered:
SuperSodaSea
changed the title
#if _DEBUG blocks are always removed in seperate packages#if _DEBUG blocks are always removed in packages' default exports
Nov 21, 2022
The
_DEBUG
is only defined when building plugins / bundles, so the#if _DEBUG
blocks are always removed in packages' default exports. If users are using PixiJS with a bundler, they will never recieve deprecation warnings in#if _DEBUG
blocks.For example, in
7.1.0-alpha
, the user will never recieve the deprecation warning with:I wondered if there is a good way to solve this problem. Maybe by adding "development" and "production" fields in "exports" in package.json?
The text was updated successfully, but these errors were encountered: