Skip to content

Commit 08370e4

Browse files
committed
Updated storybook compilation
1 parent 033bc77 commit 08370e4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.storybook/main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ export default {
2626
return mergeConfig(config, {
2727
resolve: {
2828
conditions: ["source"],
29+
dedupe: [
30+
"react",
31+
"react-dom",
32+
"@macrostrat/ui-components",
33+
"@macrostrat/column-components",
34+
"@macrostrat/mapbox-react",
35+
"@macrostrat/map-interface",
36+
"@macrostrat/column-views",
37+
],
2938
},
3039
optimizeDeps: {
3140
exclude: ["node_modules/.cache/storybook"],

.storybook/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const decorators = [
6363
export const tags = ["autodocs"];
6464

6565
export function resolvePattern(id: string) {
66+
console.log("Resolving pattern for id:", id);
6667
return `https://dev.macrostrat.org/assets/geologic-patterns/svg/${id}.svg`;
6768
}
6869

0 commit comments

Comments
 (0)