Skip to content

Commit

Permalink
Add maplibre warning to blocks (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
micheal-parks authored Aug 19, 2024
1 parent 0aba693 commit 83d1dff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/prime-blocks",
"version": "0.1.2",
"version": "0.1.3",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/blocks/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
if (!('createObjectURL' in globalThis.URL)) {
throw new Error(
'<MapLibre> requires the window.URL.createObjectURL method. If in a testing environment, this must be mocked or stubbed.'
);
}

// Three.js components
export { default as AxesHelper } from './axes-helper/axes-helper.svelte';
export { LengthCapsuleGeometry } from './capsule-geometry/capsule-geometry';
Expand Down

0 comments on commit 83d1dff

Please sign in to comment.