cancel
Showing results for 
Search instead for 
Did you mean: 

General Discussions

compile RequireJS to remove AMD dependency

I'm using RequireJS to manage my dependencies in development, but at production I would like to remove all dependencies on an AMD loader. It looks like the RequireJS optimizer creates a file that still uses an AMD load at runtime - I'm just looking to have a static (non-AMD dependent, but still AMD compatible) file, such as what jquery produces (from looking at jquery source, it appears they manually order their dependencies in their grunt file). Is this possible?

I'm open to using other libraries other than RequireJS as well.

0 Likes
2 Replies

Another User opened another thread concerning the same type of technical issue about RequireJS: https://community.amd.com/t5/general-discussions/add-non-amd-modules-before-amd-modules/m-p/523562#M...

Maybe you three can figure something out.

What exactly is RequireJS? is that some sort of scientific program or a computer language like JAVA?

NOTE: see if AMD Support can help you any from here: https://www.amd.com/en/support/contact-email-form

0 Likes

From RequireJS tutorial webpage: https://www.tutorialspoint.com/requirejs/index.htm

RequireJS is a JavaScript library and file loader which manages the dependencies between JavaScript files and in modular programming. It also helps to improve the speed and quality of the code. This tutorial is intended to make you comfortable in getting started with RequireJS and its various functions.

0 Likes