Sets NODE_ENV value during compile time via tsup. This will prevent the connect-wallet package from adding the logging middleware in non-development environments and will also allow us to adjust the i18n configuration to make use of the process.env.NODE_ENV value for the debug configuration value (PR to follow).
🕹️ Demonstration
Demo screenshots were captured while running an example. This works because the examples make use of built packages rather than development packages.
Before
After
🎩 How can this be tophatted?
Pull main.
yarn install
yarn example
a. Run any example
When the app launches you will see logging from the connect-wallet package.
Repeat the steps above, but instead of pulling main, pull this branch.
✅ Checklist
[ ] ~Tested on mobile~ N/A
[ ] ~Tested on multiple browsers~ N/A
[ ] ~Tested for accessibility~ N/A
[ ] ~Includes unit tests~ N/A
[ ] ~Updated relevant documentation for the changes (if necessary)~ N/A
ℹ️ What is the context for these changes?
Sets
NODE_ENV
value during compile time viatsup
. This will prevent theconnect-wallet
package from adding the logging middleware in non-development environments and will also allow us to adjust the i18n configuration to make use of theprocess.env.NODE_ENV
value for thedebug
configuration value (PR to follow).🕹️ Demonstration
Demo screenshots were captured while running an example. This works because the examples make use of built packages rather than development packages.
🎩 How can this be tophatted?
yarn install
yarn example
a. Run any exampleRepeat the steps above, but instead of pulling main, pull this branch.
✅ Checklist