duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

about common.js #429

Closed xchl closed 6 years ago

xchl commented 9 years ago

like this

           a.js
           var uid = require('matthewmueller/uid');
           var fmt = require('yields/fmt');
           var msg = fmt('Your unique ID is %s!', uid());
           window.alert(msg);

            b.js
           var uid = require('matthewmueller/uid');
           var fmt = require('yields/fmt');
           var msg = fmt('Your unique ID is %s!', uid());
           window.alert(msg);

           //a.js and b.js  required same module 
           //I want to konw how generate the common.js ;
           //in html
           <script src="common.js"></script/>
           <script src="a.js"></script>

thank your help

dominicbarnes commented 9 years ago

Unfortunately, this is not currently supported.