Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top