@topvisor/ui 0.9.35-1 → 0.9.35-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/require/css.amd.js +12 -1
package/package.json
CHANGED
package/require/css.amd.js
CHANGED
|
@@ -3,10 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
define({
|
|
5
5
|
load: (name, req, onload) => {
|
|
6
|
+
/**
|
|
7
|
+
* Плагин является динамическим импортом и ведет себя как top-level await поэтому следует избегать цикличных зависимостей
|
|
8
|
+
*
|
|
9
|
+
* Важно понимать, что сборка ведется на базе forms, который включает в себя ядро UI, поэтому сам себя forms загрузить не сможет
|
|
10
|
+
*/
|
|
11
|
+
if (name === '@topvisor/ui/assets/forms.css') {
|
|
12
|
+
onload();
|
|
13
|
+
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
req(['../utils/css.amd'], ({ insertToPage }) => {
|
|
7
18
|
let cssURL = req.toUrl(name);
|
|
8
19
|
|
|
9
20
|
insertToPage([cssURL]).then(onload).catch(onload.error);
|
|
10
21
|
});
|
|
11
22
|
},
|
|
12
|
-
});
|
|
23
|
+
});
|