@olenbetong/appframe-vite 6.13.1 → 6.14.0
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/lib/build.js +17 -0
- package/package.json +3 -3
package/lib/build.js
CHANGED
|
@@ -30,6 +30,14 @@ export const PLATFORM_EXTERNALS = [
|
|
|
30
30
|
"pdfjs-dist",
|
|
31
31
|
"react-pdf",
|
|
32
32
|
"pdf-lib",
|
|
33
|
+
// Highcharts: the core, the React wrapper and the accessibility module most charts load.
|
|
34
|
+
// Other modules (xrange, highcharts-more, ...) stay bundled in the app that imports them;
|
|
35
|
+
// they register on the `_Highcharts` global the core sets, so they extend the shared copy.
|
|
36
|
+
"highcharts",
|
|
37
|
+
"highcharts/modules/accessibility",
|
|
38
|
+
"highcharts-react-official",
|
|
39
|
+
"mqtt",
|
|
40
|
+
"temporal-polyfill",
|
|
33
41
|
];
|
|
34
42
|
/**
|
|
35
43
|
* The IIFE global each platform specifier is published under (`buildConfig.entries` in the
|
|
@@ -55,6 +63,11 @@ export const PLATFORM_GLOBALS = {
|
|
|
55
63
|
"pdfjs-dist": "SynergiPlatform.pdfjs",
|
|
56
64
|
"react-pdf": "SynergiPlatform.reactPdf",
|
|
57
65
|
"pdf-lib": "SynergiPlatform.pdfLib",
|
|
66
|
+
highcharts: "SynergiPlatform.highcharts",
|
|
67
|
+
"highcharts/modules/accessibility": "SynergiPlatform.highchartsAccessibility",
|
|
68
|
+
"highcharts-react-official": "SynergiPlatform.highchartsReact",
|
|
69
|
+
mqtt: "SynergiPlatform.mqtt",
|
|
70
|
+
"temporal-polyfill": "SynergiPlatform.temporal",
|
|
58
71
|
};
|
|
59
72
|
export function usesPlatform(appframe) {
|
|
60
73
|
return appframe?.build?.platform === true;
|
|
@@ -77,6 +90,10 @@ export const PLATFORM_UPSTREAM = [
|
|
|
77
90
|
"pdfjs-dist",
|
|
78
91
|
"react-pdf",
|
|
79
92
|
"pdf-lib",
|
|
93
|
+
"highcharts",
|
|
94
|
+
"highcharts-react-official",
|
|
95
|
+
"mqtt",
|
|
96
|
+
"temporal-polyfill",
|
|
80
97
|
];
|
|
81
98
|
/**
|
|
82
99
|
* Whether the app renders `ToolbarDrawerToggle` (synergi-react) anywhere under `src/`: a plain
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/appframe-vite",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.0",
|
|
4
4
|
"description": "Tools to use and deploy Vite applications to Appframe",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@olenbetong/appframe-auth": "0.1.0",
|
|
33
|
-
"@olenbetong/appframe-data": "1.8.
|
|
33
|
+
"@olenbetong/appframe-data": "1.8.2",
|
|
34
34
|
"body-parser": "^2.3.0",
|
|
35
35
|
"chalk": "6.0.1",
|
|
36
36
|
"chokidar": "^5.0.0",
|
|
37
37
|
"commander": "15.0.0",
|
|
38
|
-
"dotenv": "^
|
|
38
|
+
"dotenv": "^18.0.4",
|
|
39
39
|
"fuzzy": "^0.1.3",
|
|
40
40
|
"inquirer": "^14.2.2",
|
|
41
41
|
"inquirer-autocomplete-standalone": "^0.8.1",
|