ModuleSpecifier: include ".js" or not?
monolithed
monolithed at gmail.com
Wed Apr 15 16:48:44 UTC 2015
This question has already been asked
https://mail.mozilla.org/pipermail/es-discuss/2015-February/041430.html
I prefer to follow the following rules:
#### File structure
```
root/
foo/
index.js
```
#### Export module
```js
export default foo class () {}
```
#### Import module
```js
import foo from './foo';
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150415/19ced8ad/attachment-0001.html>
More information about the es-discuss
mailing list