From de5793277a607c6178eb378d9e422f415f004841 Mon Sep 17 00:00:00 2001 From: Jonathan Lurie Date: Fri, 22 Dec 2023 15:23:25 +0100 Subject: [PATCH] ENH smaller ES bundle --- CHANGELOG.md | 6 ++++++ package.json | 2 +- vite.config-es.ts | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f438fd..abc808c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ ### Bug Fixes ### Others +## 1.0.1 +### New Features +### Bug Fixes +### Others +- improved the build to favor external dependencies for ES version. NPM package is now much smaller + ## 1.0.0 ### New Features - Creation of the first version diff --git a/package.json b/package.json index 081f7f3..661cb72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@maptiler/elevation-profile-control", - "version": "1.0.0", + "version": "1.0.1", "description": "Elevation profile control for MapTiler SDK", "module": "dist/maptiler-elevation-profile-control.js", "types": "dist/maptiler-elevation-profile-control.d.ts", diff --git a/vite.config-es.ts b/vite.config-es.ts index 09e1da7..47ba412 100644 --- a/vite.config-es.ts +++ b/vite.config-es.ts @@ -28,6 +28,11 @@ export default defineConfig({ // into your library external: [ "@maptiler/sdk", + "chart.js", + "chartjs-plugin-crosshair", + "chartjs-plugin-zoom", + "events", + "quick-lru" ], output: { // Provide global variables to use in the UMD build