File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -711,6 +711,12 @@ with [environment variables]:
711711 BROWSERSLIST_ROOT_PATH=. npx webpack
712712 ` ` `
713713
714+ * ` BROWSERSLIST_TRACE_WARNING` to find the source of update db warning.
715+
716+ ` ` ` sh
717+ BROWSERSLIST_TRACE_WARNING=1 npx webpack
718+ ` ` `
719+
714720[environment variables]: https://en.wikipedia.org/wiki/Environment_variable
715721
716722# ## `browserslist.coverage()`
Original file line number Diff line number Diff line change @@ -477,6 +477,11 @@ module.exports = {
477477 var monthsPassed = getMonthsPassed ( latest )
478478
479479 if ( latest !== 0 && monthsPassed >= 6 ) {
480+ if ( process . env . BROWSERSLIST_TRACE_WARNING ) {
481+ console . info ( 'Last browser release in DB: ' + String ( new Date ( latest ) ) )
482+ console . trace ( )
483+ }
484+
480485 var months = monthsPassed + ' ' + ( monthsPassed > 1 ? 'months' : 'month' )
481486 console . warn (
482487 'Browserslist: browsers data (caniuse-lite) is ' +
You can’t perform that action at this time.
0 commit comments