title: I'm fairly new to TypeScript, and have been encountering an error: Unexpected token 'export'
body: <p>I've been searching the internet but to no avail.</p>
  <p>My code:</p>
  <pre><code>export const MESSAGES = {
      TEST: {
      ONE: 'Hello, world!'
    }
  }
  </code></pre>
  <p>tsconfig:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;compilerOptions&quot;: {
        &quot;target&quot;: &quot;es6&quot;,
        &quot;module&quot;: &quot;commonjs&quot;,
        &quot;strict&quot;: true
      }
    }
  </code></pre>
  <p>EDIT: I am requiring inside a JavaScript file.</p>