WebPack: Uncaught ReferenceError: BrotliBitReader is not defined
<p>I am using WebPack to build a module (pdfmake) for the browser. The dependency chain includes a module called <a href="https://github.com/devongovett/brotli.js" rel="nofollow noreferrer">brotli.js</a> which is failing on the following line.</p>

<p>What I'm trying to figure out is why does it throw an exception when <code>BrotliBitReader</code> is clearly defined right above.</p>

<p>Here is a screenshot of the exception (where the breakpoint is):</p>

<p><img src="https://d3vv6lp55qjaqc.cloudfront.net/items/262c3w0k1t3w3n3l0n3d/Screen%20Shot%202016-11-15%20at%202.36.19%20PM.png?X-CloudApp-Visitor-Id=693798" alt=""></p>

<p>Here is full stacktrace:</p>

<p><img src="https://d3vv6lp55qjaqc.cloudfront.net/items/143o0s023Z0m3w0N222s/Screen%20Shot%202016-11-15%20at%202.42.38%20PM.png?X-CloudApp-Visitor-Id=693798" alt=""></p>

<p>Here is my <a href="https://gist.github.com/danawoodman/91b9e4dd727fd19c7dba021b05157dba" rel="nofollow noreferrer">WebPack config</a></p>

<p>Thanks for any help!</p>