Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Export * from ... #236

@arcanis

Description

@arcanis

I'm dealing with a weird issue apparently related to ES6 Module Loader.

foo.js

export var FOO = 'foo';

bar.js

export * from './foo';

export var BAR = 'bar';

hello.js

System.import( './bar' ).then( function ( m ) {
    console.assert( m.FOO === 'foo' ); // ok
    console.assert( m.BAR === 'bar' ); // nope
} );

However, and it's even weirder, if you add something above the exportStar statement, then it works.

bar-fixed.js

// even a comment is enough
export * from './foo';

export var BAR = 'bar';

Any idea what could cause this? I've tested on the Traceur REPL, and it seems to be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions