@maptiler/sdk 2.2.2 → 2.4.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/dist/maptiler-sdk.css +1 -1
- package/dist/maptiler-sdk.mjs +8468 -1404
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/Map.d.ts +13 -4
- package/dist/src/MaptilerGeolocateControl.d.ts +1 -1
- package/dist/src/MaptilerNavigationControl.d.ts +2 -1
- package/dist/src/config.d.ts +3 -3
- package/dist/src/defaults.d.ts +2 -2
- package/dist/src/helpers/index.d.ts +2 -0
- package/dist/src/helpers/screenshot.d.ts +19 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/language.d.ts +96 -130
- package/dist/src/mapstyle.d.ts +16 -1
- package/dist/src/tools.d.ts +4 -0
- package/package.json +13 -10
- package/readme.md +132 -0
- package/vite.config-es.ts +1 -1
- package/vite.config-umd.ts +3 -1
package/vite.config-umd.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { resolve } from 'path';
|
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
3
|
|
|
4
4
|
const isProduction = process.env.NODE_ENV === "production";
|
|
5
|
+
const bundleFilename = isProduction ? "maptiler-sdk.umd.min.js" : "maptiler-sdk.umd.js"
|
|
5
6
|
|
|
6
7
|
const plugins = [];
|
|
7
8
|
|
|
@@ -11,13 +12,14 @@ export default defineConfig({
|
|
|
11
12
|
build: {
|
|
12
13
|
outDir: "build",
|
|
13
14
|
minify: isProduction,
|
|
15
|
+
emptyOutDir: isProduction,
|
|
14
16
|
sourcemap: true,
|
|
15
17
|
lib: {
|
|
16
18
|
// Could also be a dictionary or array of multiple entry points
|
|
17
19
|
entry: resolve(__dirname, 'src/index.ts'),
|
|
18
20
|
name: 'maptilersdk',
|
|
19
21
|
// the proper extensions will be added
|
|
20
|
-
fileName: (format, entryName) =>
|
|
22
|
+
fileName: (format, entryName) => bundleFilename,
|
|
21
23
|
formats: ['umd'],
|
|
22
24
|
}
|
|
23
25
|
},
|