Skip to content

Commit

Permalink
Fix aliased import for utils/common.js
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jun 27, 2024
1 parent 86c3ffa commit 526f06e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-camels-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': patch
---

Fix aliased import for utils/common.js
2 changes: 1 addition & 1 deletion packages/layerchart/src/lib/components/Bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Spline from './Spline.svelte';
import { createDimensionGetter } from '$lib/utils/rect.js';
import type { Accessor } from 'layerchart/utils/common.js';
import type { Accessor } from '../utils/common.js';
const { x: xContext, y: yContext } = chartContext();
Expand Down
2 changes: 1 addition & 1 deletion packages/layerchart/src/lib/components/Chart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</script>

<script lang="ts" generics="TData">
import { accessor, type Accessor } from 'layerchart/utils/common.js';
import { accessor, type Accessor } from '../utils/common.js';
import type { HierarchyNode } from 'd3-hierarchy';
import type { SankeyGraph } from 'd3-sankey';
Expand Down

0 comments on commit 526f06e

Please sign in to comment.