title: How To Import / Use Immutable.js Within Worker
body: <p>I have been stuck with this for two days and have not found an answer to this question.</p>
  
  <p>In my React, Redux app, I am using <code>immutable.js</code> for all object manipulations. I need a web-worker to do some computations &amp; post the action back to the <code>middleware</code> for dispatch.</p>
  
  <p>Using this syntax gets an error: </p>
  
  <p><strong>Worker.js</strong></p>
  
  <pre><code>self.importScripts( "../../node_modules/immutable/dist/immutable.js" );
  </code></pre>
  
  <p>error reported by browser: <code>NetworkError: Failed to load worker script at ../../node_modules/immutable/dist/immutable.js (nsresult = 0x804b001d)</code></p>
  
  <p>How do I import <code>immutable.js</code> into web-worker file &amp; how do I use it? Clearly the following <code>es6</code> <code>import</code> syntax wont work.</p>
  
  <p>wouldn't work:</p>
  
  <pre><code>import { Map, List } from "immutable";
  </code></pre>