<p dir="auto">I've taken a project I was working on from the 1.5 beta, and simply switched from CommonJS modules to System. I now seem to be getting the title error on startup which suggests something is perhaps amiss in the output?</p>
<p dir="auto">I've not managed to create a small reproduction yet, but here are the TS and JS for the code file which SystemJS is complaining about:</p>
<p dir="auto">alert.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { StandardDialog } from '../standard/standard';

export interface AlertDialogOptions {
    /**
     * The text to display on the 'OK' button. Defaults to 'OK'.
     */
    okText?: string;
}

export class AlertDialog extends StandardDialog {
    // Constructor
    constructor(text: string, opts?: AlertDialogOptions) {
        const content = $(&quot;&lt;p&gt;&quot;).text(text);        
        const okText = (opts &amp;&amp; opts.okText) ? opts.okText : &quot;OK&quot;;

        super({
            content: content,
            buttons: [
                { text: okText, primary: true, click: () =&gt; this._ok_click() }
            ]
        });

        this.el.classList.add(&quot;alert-dialog&quot;);
    }

    // Event Handlers
    private _ok_click(): void {
        this.close();
    }

    // Static Methods

    /**
     * Shows an Alert dialog. Returns a promise that will resolve when the OK button is clicked
     * @param text the text to be displayed
     * @param opts any non-default options
     */
    public static show(text: string, opts?: AlertDialogOptions): Promise&lt;void&gt; {
        const dlg = new AlertDialog(text, opts);
        return dlg.show();
    }
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">StandardDialog</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../standard/standard'</span><span class="pl-kos">;</span>

<span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">AlertDialogOptions</span> <span class="pl-kos">{</span>
    <span class="pl-c">/**</span>
<span class="pl-c">     * The text to display on the 'OK' button. Defaults to 'OK'.</span>
<span class="pl-c">     */</span>
    <span class="pl-c1">okText</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AlertDialog</span> <span class="pl-k">extends</span> <span class="pl-smi">StandardDialog</span> <span class="pl-kos">{</span>
    <span class="pl-c">// Constructor</span>
    <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">text</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span>?: <span class="pl-smi">AlertDialogOptions</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-k">const</span> <span class="pl-s1">content</span> <span class="pl-c1">=</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"&lt;p&gt;"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">)</span><span class="pl-kos">;</span>        
        <span class="pl-k">const</span> <span class="pl-s1">okText</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">opts</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">opts</span><span class="pl-kos">.</span><span class="pl-c1">okText</span><span class="pl-kos">)</span> ? <span class="pl-s1">opts</span><span class="pl-kos">.</span><span class="pl-c1">okText</span> : <span class="pl-s">"OK"</span><span class="pl-kos">;</span>

        <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
            <span class="pl-c1">content</span>: <span class="pl-s1">content</span><span class="pl-kos">,</span>
            <span class="pl-c1">buttons</span>: <span class="pl-kos">[</span>
                <span class="pl-kos">{</span> <span class="pl-c1">text</span>: <span class="pl-s1">okText</span><span class="pl-kos">,</span> <span class="pl-c1">primary</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">_ok_click</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span>
            <span class="pl-kos">]</span>
        <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

        <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">el</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"alert-dialog"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>

    <span class="pl-c">// Event Handlers</span>
    <span class="pl-k">private</span> <span class="pl-en">_ok_click</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span>
        <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>

    <span class="pl-c">// Static Methods</span>

    <span class="pl-c">/**</span>
<span class="pl-c">     * Shows an Alert dialog. Returns a promise that will resolve when the OK button is clicked</span>
<span class="pl-c">     * <span class="pl-k">@param</span> text the text to be displayed</span>
<span class="pl-c">     * <span class="pl-k">@param</span> opts any non-default options</span>
<span class="pl-c">     */</span>
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-en">show</span><span class="pl-kos">(</span><span class="pl-s1">text</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span>?: <span class="pl-smi">AlertDialogOptions</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span>
        <span class="pl-k">const</span> <span class="pl-s1">dlg</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">AlertDialog</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-k">return</span> <span class="pl-s1">dlg</span><span class="pl-kos">.</span><span class="pl-en">show</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">alert.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var __extends = (this &amp;&amp; this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};System.register(['../standard/standard'], function(exports_1) {
    var standard_1;
    var AlertDialog;
    return {
        setters:[
            function (_standard_1) {
                standard_1 = _standard_1;
            }],
        execute: function() {
            AlertDialog = (function (_super) {
                __extends(AlertDialog, _super);
                // Constructor
                function AlertDialog(text, opts) {
                    var _this = this;
                    var content = $(&quot;&lt;p&gt;&quot;).text(text);
                    var okText = (opts &amp;&amp; opts.okText) ? opts.okText : &quot;OK&quot;;
                    _super.call(this, {
                        content: content,
                        buttons: [
                            { text: okText, primary: true, click: function () { return _this._ok_click(); } }
                        ]
                    });
                    this.el.classList.add(&quot;alert-dialog&quot;);
                }
                // Event Handlers
                AlertDialog.prototype._ok_click = function () {
                    this.close();
                };
                // Static Methods
                /**
                 * Shows an Alert dialog. Returns a promise that will resolve when the OK button is clicked
                 * @param text the text to be displayed
                 * @param opts any non-default options
                 */
                AlertDialog.show = function (text, opts) {
                    var dlg = new AlertDialog(text, opts);
                    return dlg.show();
                };
                return AlertDialog;
            })(standard_1.StandardDialog);
            exports_1(&quot;AlertDialog&quot;, AlertDialog);
        }
    }
});
//# sourceMappingURL=alert.js.map"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">__extends</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">__extends</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">p</span> <span class="pl-k">in</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-en">hasOwnProperty</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">d</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
    <span class="pl-k">function</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-c1">=</span> <span class="pl-s1">d</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
    <span class="pl-c1">__</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">;</span>
    <span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'../standard/standard'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">var</span> <span class="pl-s1">standard_1</span><span class="pl-kos">;</span>
    <span class="pl-k">var</span> <span class="pl-v">AlertDialog</span><span class="pl-kos">;</span>
    <span class="pl-k">return</span> <span class="pl-kos">{</span>
        <span class="pl-c1">setters</span>:<span class="pl-kos">[</span>
            <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_standard_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">standard_1</span> <span class="pl-c1">=</span> <span class="pl-s1">_standard_1</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
        <span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
            <span class="pl-v">AlertDialog</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_super</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">__extends</span><span class="pl-kos">(</span><span class="pl-v">AlertDialog</span><span class="pl-kos">,</span> <span class="pl-s1">_super</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-c">// Constructor</span>
                <span class="pl-k">function</span> <span class="pl-v">AlertDialog</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-k">var</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
                    <span class="pl-k">var</span> <span class="pl-s1">content</span> <span class="pl-c1">=</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"&lt;p&gt;"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                    <span class="pl-k">var</span> <span class="pl-s1">okText</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">opts</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">opts</span><span class="pl-kos">.</span><span class="pl-c1">okText</span><span class="pl-kos">)</span> ? <span class="pl-s1">opts</span><span class="pl-kos">.</span><span class="pl-c1">okText</span> : <span class="pl-s">"OK"</span><span class="pl-kos">;</span>
                    <span class="pl-s1">_super</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
                        <span class="pl-c1">content</span>: <span class="pl-s1">content</span><span class="pl-kos">,</span>
                        <span class="pl-c1">buttons</span>: <span class="pl-kos">[</span>
                            <span class="pl-kos">{</span> <span class="pl-c1">text</span>: <span class="pl-s1">okText</span><span class="pl-kos">,</span> <span class="pl-c1">primary</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-en">_ok_click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span>
                        <span class="pl-kos">]</span>
                    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                    <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">el</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"alert-dialog"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span>
                <span class="pl-c">// Event Handlers</span>
                <span class="pl-v">AlertDialog</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">_ok_click</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span><span class="pl-kos">;</span>
                <span class="pl-c">// Static Methods</span>
                <span class="pl-c">/**</span>
<span class="pl-c">                 * Shows an Alert dialog. Returns a promise that will resolve when the OK button is clicked</span>
<span class="pl-c">                 * <span class="pl-k">@param</span> text the text to be displayed</span>
<span class="pl-c">                 * <span class="pl-k">@param</span> opts any non-default options</span>
<span class="pl-c">                 */</span>
                <span class="pl-v">AlertDialog</span><span class="pl-kos">.</span><span class="pl-en">show</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-k">var</span> <span class="pl-s1">dlg</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AlertDialog</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                    <span class="pl-k">return</span> <span class="pl-s1">dlg</span><span class="pl-kos">.</span><span class="pl-en">show</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span><span class="pl-kos">;</span>
                <span class="pl-k">return</span> <span class="pl-v">AlertDialog</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">standard_1</span><span class="pl-kos">.</span><span class="pl-c1">StandardDialog</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
            <span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"AlertDialog"</span><span class="pl-kos">,</span> <span class="pl-v">AlertDialog</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//# sourceMappingURL=alert.js.map</span></pre></div>
<p dir="auto">Console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Multiple anonymous System.register calls in the same module file.
Uncaught (in promise) Uncaught TypeError: Multiple anonymous System.register calls in the same module file.
    Evaluating http://localhost:4544/src/ui/dialogs/common/alert.js
    Error loading http://localhost:4544/src/startup.js"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Multiple anonymous System.register calls in the same module file.
Uncaught (in promise) Uncaught TypeError: Multiple anonymous System.register calls in the same module file.
    Evaluating http://localhost:4544/src/ui/dialogs/common/alert.js
    Error loading http://localhost:4544/src/startup.js
</code></pre></div>
<p dir="auto">Hope this is helpful. I'll try to find a way to reproduce with a smaller set of code if it isn't.</p>
<p dir="auto">EDIT: btw, I did some searching around the issue before posting and noticed a few things said about bundles. Just to be clear, I'm not using bundles at the moment.</p>
<p dir="auto">Using this contrived example again,</p>
<p dir="auto">Export file with super class:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// foo.ts
export class Foo {
  a: string;
}"><pre class="notranslate"><span class="pl-c">/// foo.ts</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
  <span class="pl-c1">a</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Import file with sub class:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// bar.ts
import {Foo} from './foo';

export class Bar extends Foo {
  b: string;
}"><pre class="notranslate"><span class="pl-c">/// bar.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">Foo</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./foo'</span><span class="pl-kos">;</span>

<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Bar</span> <span class="pl-k">extends</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
  <span class="pl-c1">b</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">System.register format output:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// bar.js
var __extends = (this &amp;&amp; this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};System.register(['./foo'], function(exports_1) {
    var foo_1;
    var Bar;
    return {
        setters:[
            function (_foo_1) {
                foo_1 = _foo_1;
            }],
        execute: function() {
            Bar = (function (_super) {
                __extends(Bar, _super);
                function Bar() {
                    _super.apply(this, arguments);
                }
                return Bar;
            })(foo_1.Foo);
            exports_1(&quot;Bar&quot;, Bar);
        }
    }
});"><pre class="notranslate"><span class="pl-c">/// bar.js</span>
<span class="pl-k">var</span> <span class="pl-s1">__extends</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">__extends</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">p</span> <span class="pl-k">in</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-en">hasOwnProperty</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">d</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
    <span class="pl-k">function</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-c1">=</span> <span class="pl-s1">d</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
    <span class="pl-c1">__</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">;</span>
    <span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'./foo'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">var</span> <span class="pl-s1">foo_1</span><span class="pl-kos">;</span>
    <span class="pl-k">var</span> <span class="pl-v">Bar</span><span class="pl-kos">;</span>
    <span class="pl-k">return</span> <span class="pl-kos">{</span>
        <span class="pl-c1">setters</span>:<span class="pl-kos">[</span>
            <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_foo_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">foo_1</span> <span class="pl-c1">=</span> <span class="pl-s1">_foo_1</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
        <span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
            <span class="pl-v">Bar</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_super</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">__extends</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">,</span> <span class="pl-s1">_super</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-k">function</span> <span class="pl-v">Bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-s1">_super</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span>
                <span class="pl-k">return</span> <span class="pl-v">Bar</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">foo_1</span><span class="pl-kos">.</span><span class="pl-c1">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
            <span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"Bar"</span><span class="pl-kos">,</span> <span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The output of System.register contains no namespace. This is not valid System.register bundle format output. When we bundle our files, our bundle will be broken with this output. To adhere to proper bundle format, the output would need to be:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// bar.js
var __extends = (this &amp;&amp; this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};System.register('bar', ['./foo'], function(exports_1) {
    var foo_1;
    var Bar;
    return {
        setters:[
            function (_foo_1) {
                foo_1 = _foo_1;
            }],
        execute: function() {
            Bar = (function (_super) {
                __extends(Bar, _super);
                function Bar() {
                    _super.apply(this, arguments);
                }
                return Bar;
            })(foo_1.Foo);
            exports_1(&quot;Bar&quot;, Bar);
        }
    }
});"><pre class="notranslate"><span class="pl-c">/// bar.js</span>
<span class="pl-k">var</span> <span class="pl-s1">__extends</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">__extends</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">p</span> <span class="pl-k">in</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-en">hasOwnProperty</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">d</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">[</span><span class="pl-s1">p</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
    <span class="pl-k">function</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-c1">=</span> <span class="pl-s1">d</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
    <span class="pl-c1">__</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">;</span>
    <span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">__</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-s">'bar'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'./foo'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">var</span> <span class="pl-s1">foo_1</span><span class="pl-kos">;</span>
    <span class="pl-k">var</span> <span class="pl-v">Bar</span><span class="pl-kos">;</span>
    <span class="pl-k">return</span> <span class="pl-kos">{</span>
        <span class="pl-c1">setters</span>:<span class="pl-kos">[</span>
            <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_foo_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">foo_1</span> <span class="pl-c1">=</span> <span class="pl-s1">_foo_1</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
        <span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
            <span class="pl-v">Bar</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_super</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                <span class="pl-s1">__extends</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">,</span> <span class="pl-s1">_super</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-k">function</span> <span class="pl-v">Bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-s1">_super</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span>
                <span class="pl-k">return</span> <span class="pl-v">Bar</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">foo_1</span><span class="pl-kos">.</span><span class="pl-c1">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
            <span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"Bar"</span><span class="pl-kos">,</span> <span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Notice that the System.register call now has a namespace which matches the name of the file.<br>
This would help Angular out a lot.</p>
<p dir="auto">Thanks for all the hard work guys!</p>