Skip to content

Commit

Permalink
fix debug bundle warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jan 7, 2020
1 parent c482053 commit 1dac857
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/developer-guide/debugging.md
Expand Up @@ -25,6 +25,14 @@ deck.log.level = 2
| 2 | Logs layer updates |
| 3+ | Additional logging around layer lifecycle, prop diffing etc |

Starting v8.0, deck.gl no longer bundles the debugging module in production mode. This includes the pre-bundled `dist.min.js`, and any bundle built with the environment variable `NODE_ENV=production`. To enable debugging in a production build, you may include the pre-bundled debug module *AFTER* the deck.gl bundle:

```html
<!-- the bundle that contains deck.gl -->
<script src="app.js"></script>
<!-- the debug module -->
<script src="https://unpkg.com/@deck.gl/core@^8.0.0/debug.min.js"></script>
```

## WebGL debugging using luma.gl

Expand Down
2 changes: 1 addition & 1 deletion modules/core/bundle/debug.js
@@ -1,5 +1,5 @@
/* global deck */
import {getLoggers} from '../src/debug/loggers';
const {getLoggers} = require('../src/debug/loggers');

const loggers = getLoggers(deck.log);
deck._registerLoggers(loggers);
Expand Down

0 comments on commit 1dac857

Please sign in to comment.