Skip to content

Commit

Permalink
chore(storybook): add @gatsbyjs/reach-router aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 23, 2021
1 parent 71ffc6a commit e8f1a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ module.exports = {
]
})

config.resolve.alias['@reach/router'] = path.resolve(
__dirname,
'../node_modules/@gatsbyjs/reach-router'
)

// Prefer Gatsby ES6 entrypoint (module) over commonjs (main) entrypoint
config.resolve.mainFields = ['browser', 'module', 'main']

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@kikobeats/use-query-state": "~1.0.6",
"@microlink/mql": "~0.10.4",
"@microlink/react": "~5.5.7",
"@microlink/recipes": "~1.2.5",
"@microlink/recipes": "~1.2.6",
"@radix-ui/react-popper": "0.1.1",
"@stripe/react-stripe-js": "~1.6.0",
"@stripe/stripe-js": "~1.21.1",
Expand Down

0 comments on commit e8f1a9d

Please sign in to comment.