@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/require/css.amd.js +12 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@topvisor/ui",
3
3
  "private": false,
4
- "version": "0.9.35-1",
4
+ "version": "0.9.35-2",
5
5
  "type": "module",
6
6
  "description": "Topvisor UI-kit Vue",
7
7
  "author": "Topvisor",
@@ -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
+ });