Open tamtakoe opened 9 years ago
You add define to the end of simed file. F.e.
define
vendor.js
(function (global, factory) { ... return jQuery; })); //Add by amd-optimize define('jQuery', [], function () { return; });
I use compiled file with require.config (not the one that was used angular-amd)
require.config({ baseUrl: '/app/', paths: { jquery: 'vendor', angular: 'vendor' } shim: { angular: ['jquery'] } }
It causes an error Uncaught TypeError: undefined is not a function. But it work if I move define section to top of vendor.js.
Uncaught TypeError: undefined is not a function
Move define sections to top of shimmed files.
Sorry, I'm very busy at the moment. I'm happy to review any test case or PR.
Ok. It is not critical. Thank you, all involved in the project! P.S. I do not know coffee for PR
You add
define
to the end of simed file. F.e.vendor.js
I use compiled file with require.config (not the one that was used angular-amd)
It causes an error
Uncaught TypeError: undefined is not a function
. But it work if I move define section to top of vendor.js.Move define sections to top of shimmed files.