Is AMD dead?

I'm currently migrating AngularJS app to Angular 4. Build script generates AMD bundles which are then loaded using RequireJS. I didn't want to change long-established and stable bundling process therefore I decided to continue using RequireJS instead of migrating everything to WebPack. Everyting worked fine except for RxJS library. To my surprise RxJS does no longer ship AMD bundles! Does it mean RequireJS/AMD is dead? I came across an interesting discussion on reddit and looks like 'yes' it's dying but slowly because of how much it has been used before.
If you get stuck with the same issue, you can use RequireJS Optimizer to convert CommonJS files to AMD and generate new bundle.

npm install requirejs
node_modules\.bin\r.js.cmd -convert node_modules\rxjs node_modules\rxjs
node_modules\.bin\r.js.cmd -o out=Libs\rxjs\bundles\Rx.min.js baseUrl=node_modules name=rxjs/Rx

Comments

Popular posts from this blog

TFS Proxy not working: The source control proxy is not responding

Demystifying fast up-to-date check in Visual Studio C# projects

Bitcoin, Docker, Microservices, etc.