Skip to content
This repository has been archived by the owner on Mar 3, 2025. It is now read-only.

Commit

Permalink
Add alias for missing optional peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Jan 11, 2024
1 parent d7e9ecd commit 4e332ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client-next/src/mapbox-gl-empty-replacement.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// The only purpose of this module is to silence an error thrown by Vite in development mode
exports = {};
5 changes: 5 additions & 0 deletions client-next/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ export default defineConfig({
outDir: 'output',
emptyOutDir: true,
},
resolve: {
alias: {
'mapbox-gl': 'src/mapbox-gl-empty-replacement.js',
},
},
});

0 comments on commit 4e332ec

Please sign in to comment.