Question

How can I convert a script did based in requirejs to a normal javascript code? for example:

define("anything",['anything'], function(anything){ //code });

how it will be in normal javascript code, without requirejs? Have a form to convert it simple?

Was it helpful?

Solution

Just include your dependencies 's before using them in your implementation and then remove the requirejs define()'s.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top