Domenic Denicola (2015-06-01T01:15:27.000Z)
Yes, in theory. However, browsers are more likely to wait until there’s a standard for browser module loaders before shipping modules, in order to avoid such divergent behavior.

But, I doubt that io.js, Traceur, etc. will follow the browser-loader standard. For example io.js will likely have a loader that is more in line with their current ES5 one, and transpilers will probably contain a way of switching between io.js and browser behaviors, at the bare minimum.

From: Mark Volkmann [mailto:r.mark.volkmann at gmail.com]
Sent: Sunday, May 31, 2015 19:37
To: Domenic Denicola
Cc: es-discuss at mozilla.org
Subject: Re: import ModuleSpecifier

Are you saying that in the future each browser can have its own rule for module specifier strings?

On Sun, May 31, 2015 at 4:31 PM, Domenic Denicola <d at domenic.me<mailto:d at domenic.me>> wrote:
It is syntactically valid, but there is no specification for what the module specifier string should contain. Traceur has one rule, and if you’re using Traceur you need to follow Traceur’s rules. I’m sure other transpilers have their own chosen rules.

In a hypothetical future where browsers have a module loader, they will have their own rule. Similarly, io.js will have its own.

From: es-discuss [mailto:es-discuss-bounces at mozilla.org<mailto:es-discuss-bounces at mozilla.org>] On Behalf Of Mark Volkmann
Sent: Sunday, May 31, 2015 17:21
To: es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
Subject: import ModuleSpecifier

I was under the impression that the following is a valid import statement:

import {something} from './somefile';

I know this used to work in Traceur. However, in the latest version of Traceur I have to include a file extension like this for it to work:

import {something} from './somefile.js';

I don't see any place in the spec. where it describes whether ModuleSpecifier should include a file extension. Maybe I just missed it. Is Traceur correct to require it?

--
R. Mark Volkmann
Object Computing, Inc.



--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150601/aa03e137/attachment.html>
d at domenic.me (2015-06-07T23:58:06.142Z)
Yes, in theory. However, browsers are more likely to wait until there’s a standard for browser module loaders before shipping modules, in order to avoid such divergent behavior.

But, I doubt that io.js, Traceur, etc. will follow the browser-loader standard. For example io.js will likely have a loader that is more in line with their current ES5 one, and transpilers will probably contain a way of switching between io.js and browser behaviors, at the bare minimum.