AMD duplicate module calls

Topics: General
Jun 19, 2014 at 9:01 PM
Edited Jun 19, 2014 at 9:50 PM
For example, I have a module, that is used in two files located in different subfolders. As a result the module is loaded twice:
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="../c/test" src="a/../c/test.js">
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="b/../../src/test" src="a/b/../../c/test.js">
How do I force the module to load only once?

Upd. I fixed by myself. Had a problem in requirejs config.
Jun 20, 2014 at 3:54 PM
Edited Jun 20, 2014 at 4:24 PM
Anyway, I still have a problem.
Example:
/root
   /a
      x.ts
   /b
      y.ts
   /c
      z.ts
x.ts and y.ts import z.ts by "../c/z". And again I got, that file loaded and executed twice:
/root/a/../c/z.js
/root/b/../c/z.js

Upd. Nvm. Fixed in last RequireJS build.