title: How can I import a javascript file from my typescript file?
body: <p>I am using Typescript &amp; angular 2. I have an EncryptionService:</p>
  
  <pre><code>import {Injectable} from 'angular2/core';
    import './lib/hmac256-enc64';
  
    @Injectable()
    export class EncryptionService {
      constructor() {
      }
      hmacSha256(message: string, secret: string) {
        return CryptoJS.HmacSHA256(message, secret).toString(CryptoJS.enc.Base64);
      }
    }
  </code></pre>
  
  <p>I want to include './lib/hmac256-enc64'; (CryptoJS) But on runtime I get the error:</p>
  
  <p><strong>detected as register but didn't execute.</strong></p>
  
  <p>How can I include a Js file as a dependency in my EncryptionService?</p>