|
14 | 14 | requirejs.config({ |
15 | 15 | baseUrl: "lib", |
16 | 16 | shim: { |
17 | | - easel: { |
| 17 | + "easel": { |
18 | 18 | exports: "createjs" |
| 19 | + }, |
| 20 | + "p5.min": { |
| 21 | + exports: "p5" |
| 22 | + }, |
| 23 | + "p5-adapter": { |
| 24 | + deps: ["p5.min"] |
| 25 | + }, |
| 26 | + "p5.sound.min": { |
| 27 | + deps: ["p5-adapter"] |
| 28 | + }, |
| 29 | + "p5.dom.min": { |
| 30 | + deps: ["p5.min"] |
| 31 | + }, |
| 32 | + "p5-sound-adapter": { |
| 33 | + deps: ["p5.sound.min"] |
19 | 34 | } |
20 | 35 | }, |
21 | 36 | paths: { |
22 | | - utils: "../js/utils", |
23 | | - widgets: "../js/widgets", |
24 | | - activity: "../js", |
25 | | - easel: "../lib/easeljs", |
26 | | - tween: "../lib/tweenjs", |
27 | | - prefixfree: "../bower_components/prefixfree/prefixfree.min", |
28 | | - samples: "../sounds/samples", |
29 | | - planet: "../js/planet", |
30 | | - tonejsMidi: "../node_modules/@tonejs/midi/dist/Midi", |
31 | | - i18next: [ |
| 37 | + "utils": "../js/utils", |
| 38 | + "widgets": "../js/widgets", |
| 39 | + "activity": "../js", |
| 40 | + "easel": "../lib/easeljs", |
| 41 | + "twewn": "../lib/tweenjs", |
| 42 | + "prefixfree": "../bower_components/prefixfree/prefixfree.min", |
| 43 | + "samples": "../sounds/samples", |
| 44 | + "planet": "../js/planet", |
| 45 | + "tonejsMidi": "../node_modules/@tonejs/midi/dist/Midi", |
| 46 | + "p5.min": "../lib/p5.min", |
| 47 | + "p5.sound.min": "../lib/p5.sound.min", |
| 48 | + "p5.dom.min": "../lib/p5.dom.min", |
| 49 | + "p5-adapter": "../js/p5-adapter", |
| 50 | + "p5-sound-adapter": "../js/p5-sound-adapter", |
| 51 | + "i18next": [ |
32 | 52 | "../lib/i18next.min", |
33 | 53 | "https://cdn.jsdelivr.net/npm/i18next@23.11.5/dist/umd/i18next.min" |
34 | 54 | ], |
35 | | - i18nextHttpBackend: [ |
| 55 | + "i18nextHttpBackend": [ |
36 | 56 | "../lib/i18nextHttpBackend.min", |
37 | 57 | "https://cdn.jsdelivr.net/npm/i18next-http-backend@2.5.1/i18nextHttpBackend.min" |
38 | 58 | ] |
@@ -67,7 +87,7 @@ requirejs(["i18next", "i18nextHttpBackend"], function (i18next, i18nextHttpBacke |
67 | 87 | console.error("i18next init failed:", err); |
68 | 88 | } |
69 | 89 | window.i18next = i18next; |
70 | | - resolve(); |
| 90 | + resolve(i18next); |
71 | 91 | } |
72 | 92 | ); |
73 | 93 | }); |
|
0 commit comments