Reputation: 3400
I have next issue. I develop widget for games. So developers give me there game (html+js+css) and I inject my widget to there page. I do it like:
<script data-main="/js/entities/pages/pageExternalGame" src="/js/libs/require/require.js"></script>
So it works in the most of games. But some developers also using require.js for there purposes, and I get next error on the page:
How can I handle with it?
Upvotes: 0
Views: 577
Reputation: 3400
I found how to resolve, may be it will help to someone: I'm just taking requirejs that I'm using, and change inside it all "require" and "define" on "requireMy" and "defineMy" - and use it in my code.
Upvotes: 2