Wpis z mikrobloga

Korzystam z tego:
http://requirejs.org/docs/whyamd.html

Tak:

require( ["modules/Section", "modules/SectionView", "libs/scrollView", "libs/arrayIter"], function(Section, SectionView, scrollView, arrayIter) {

// treść
});

define(["modules/Section", "modules/GroupView", "libs/scrollView", "libs/stickyLoad"], function(Section, GroupView, scrollView, stickyLoad) {
// treść
return SectionView;

});

// jsconfig.json
{
// See https://go.microsoft.com/fwlink/?LinkId=759670
// for the documentation about the jsconfig.json format
"compilerOptions": {
"target": "es6",
"module": "amd",
"allowSyntheticDefaultImports": true
},
"exclude": [
"nodemodules",
"bower
components",
"jspm_packages",
"tmp",
"temp"
]
}

Liczę, że może źle tego używam,
@kmiasko: Z czego korzystać żeby działało?
Tylko bez babela, takie żeby działało po stronie klienta chcę.

Mi to jest obojętne, mogę zaraz zmienić, jak podasz zamiennik działający.