title: npm run build:js throws error on Jupyter notebook code
body: <p><strong>I just took the Jupyter Notebook raw code, made a small change in HTML/Javascript and tried re-building it. It threw the below error:</strong></p>
  
  <pre><code>WARNING in ./~/xterm/addons/attach/index.html
  Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\attach\index.html Unexpected token (1:0)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:0)
      at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
      at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
      at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
      at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
      at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
      at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
      at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
      at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
      at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
      at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
      at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
      at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
      at DependenciesBlock.&lt;anonymous&gt; (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
      at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
      at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
      at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
   @ ./~/xterm/addons ^\.\/.*$
  
  WARNING in ./~/xterm/addons/linkify/index.html
  Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\linkify\index.html Unexpected token (1:0)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:0)
      at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
      at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
      at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
      at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
      at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
      at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
      at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
      at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
      at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
      at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
      at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
      at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
      at DependenciesBlock.&lt;anonymous&gt; (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
      at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
      at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
      at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
   @ ./~/xterm/addons ^\.\/.*$
  
  WARNING in ./~/xterm/addons/attach/index.html
  Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\attach\index.html Unexpected token (1:0)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:0)
      at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
      at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
      at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
      at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
      at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
      at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
      at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
      at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
      at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
      at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
      at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
      at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
      at DependenciesBlock.&lt;anonymous&gt; (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
      at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
      at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
      at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
   @ ./~/xterm/addons ^\.\/.*$
  
  WARNING in ./~/xterm/addons/linkify/index.html
  Module parse failed: C:\Users\ytayal\Downloads\notebook-master\node_modules\xterm\addons\linkify\index.html Unexpected token (1:0)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:0)
      at Parser.pp$4.raise (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:2221:15)
      at Parser.pp.unexpected (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:603:10)
      at Parser.pp$3.parseExprAtom (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1822:12)
      at Parser.pp$3.parseExprSubscripts (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1715:21)
      at Parser.pp$3.parseMaybeUnary (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1692:19)
      at Parser.pp$3.parseExprOps (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1637:21)
      at Parser.pp$3.parseMaybeConditional (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1620:21)
      at Parser.pp$3.parseMaybeAssign (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1597:21)
      at Parser.pp$3.parseExpression (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:1573:21)
      at Parser.pp$1.parseStatement (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:727:47)
      at Parser.pp$1.parseTopLevel (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:638:25)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:516:17)
      at Object.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\acorn\dist\acorn.js:3098:39)
      at Parser.parse (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\Parser.js:902:15)
      at DependenciesBlock.&lt;anonymous&gt; (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack\lib\NormalModule.js:104:16)
      at DependenciesBlock.onModuleBuild (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
      at nextLoader (C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
      at Storage.finished (C:\Users\ytayal\Downloads\notebook-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
      at C:\Users\ytayal\Downloads\notebook-master\node_modules\graceful-fs\graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
   @ ./~/xterm/addons ^\.\/.*$
  </code></pre>