Open xzyfer opened 10 years ago
Will Browserify work? http://browserify.org/
I thought there was a way to make it output several different formats (globals, AMD, etc), but maybe I'm getting confused. Someone else was talking about writing your code with ES6 modules and using es6ify ( http://thlorenz.github.io/es6ify/) to compile them using traceur.
On 17 February 2014 17:58, xzyfer notifications@github.com wrote:
https://www.npmjs.org/package/amdclean
The current js UMD wrapper is pretty gnarly. Ideally we could use AMD to manage internal dependencies but build js that's AMD free.
Down stream consumers can decide whether they want to shim our js or not. Forcing AMD on users is not ideal.
Reply to this email directly or view it on GitHubhttps://github.com/asimov/asimov-core/issues/14 .
[image: Goodfilms]Glen MaddernCo-founderEmailglen@goodfil.msPhone0423 118 405Webhttp://goodfil.ms
I think it was me that suggested using ES6 modules, but at the time I'd read there were still some issues with transpiliers.
Both might be work looking into. If we can spitout valid AMD and plain old js from a single method that'd be awesome.
AMD clean is an option https://www.npmjs.org/package/amdclean
I've renamed the issue to be more accurate.
If you guys need helping setting up AMDClean, let me know!
The current js UMD wrapper is pretty gnarly. Ideally we could use AMD to manage internal dependencies but build js that's AMD free.
Down stream consumers can decide whether they want to shim our js or not. Forcing AMD on users is not ideal.