amd-dependency-edit
edit amd-like dependencies in commonjs style
only support following amd style currently.
define
only accepts two argument, first is array
, second is function
define(
[
'path/to/a',
'path/to/b',
'path/to/c'
],
function( a, b, c, d ) {
// your own logic
});
Code above will be transformed into following at first time
var a = require( 'path/to/a' );
var b = require( 'path/to/b' );
var c = require( 'path/to/c' );
var d;
Try to edit source code or generated code, they will be synced automatically on next change.
Enjoy it 😉
License
MIT © fengzilong