Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amitu/amdfix

AMDFix fixes AMD files
https://github.com/amitu/amdfix

Last synced: 1 day ago
JSON representation

AMDFix fixes AMD files

Awesome Lists containing this project

README

        

Instead of writing

```javascript
define(["dojo/dom-class", "dojo/on"], function(domClass, on){
domClass.add(document.body, "dojorocks");
on(window, "resize", function(){

});

function foo() {

}

return foo;
});
```

Write

```javascript
import dojo/dom-class;
// above is same as: import dojo/dom-class as domClass;
import dojo/on;

domClass.add(document.body, "dojorocks");
on(window, "resize", function(){

});

function foo() {

}

export foo;
```