@vcmap/plugin-cli 2.1.6 → 2.1.8
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 +2 -2
- package/src/pluginCliHelper.js +1 -1
- package/src/serve.js +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcmap/plugin-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "A CLI to help develop and build plugins for the VC Map",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"vue-template-compiler": "~2.7.14"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@vcmap/ui": "^5.0.0-rc.
|
|
46
|
+
"@vcmap/ui": "^5.0.0-rc.24",
|
|
47
47
|
"vue": "~2.7.14"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
package/src/pluginCliHelper.js
CHANGED
|
@@ -42,7 +42,7 @@ export async function getVcmConfigJs() {
|
|
|
42
42
|
return vcmConfigJs;
|
|
43
43
|
}
|
|
44
44
|
try {
|
|
45
|
-
vcmConfigJs = await import(pathToFileURL(vcmConfigJsPath));
|
|
45
|
+
({ default: vcmConfigJs } = await import(pathToFileURL(vcmConfigJsPath)));
|
|
46
46
|
logger.info('Using vcm.config.js found in current project.');
|
|
47
47
|
} catch (err) {
|
|
48
48
|
logger.error(err);
|
package/src/serve.js
CHANGED
|
@@ -111,12 +111,19 @@ export default async function serve(options) {
|
|
|
111
111
|
resolve: {
|
|
112
112
|
alias: {
|
|
113
113
|
'@cesium/engine': '@vcmap-cesium/engine',
|
|
114
|
+
tinyqueue: 'tinyqueue/tinyqueue.js',
|
|
114
115
|
},
|
|
115
116
|
dedupe: Object.keys(peerDependencies),
|
|
116
117
|
},
|
|
117
118
|
optimizeDeps: {
|
|
118
119
|
exclude: ['@vcmap/ui', '@vcmap/core', 'ol', 'proj4'],
|
|
119
|
-
include: [
|
|
120
|
+
include: [
|
|
121
|
+
'fast-deep-equal',
|
|
122
|
+
'rbush-knn',
|
|
123
|
+
'pbf',
|
|
124
|
+
'@vcmap-cesium/engine',
|
|
125
|
+
'vue',
|
|
126
|
+
],
|
|
120
127
|
},
|
|
121
128
|
plugins: [createVuePlugin(), createConfigJsonReloadPlugin()],
|
|
122
129
|
server: {
|