Skip to content

Commit

Permalink
ENH smaller ES bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Dec 22, 2023
1 parent 5896b05 commit de57932
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions vite.config-es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de57932

Please sign in to comment.