Skip to content

Commit

Permalink
import toast
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Millet authored and Jean-Marc Millet committed Oct 20, 2023
1 parent fe1f6a1 commit f46b123
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ module.exports = {
'@storybook/addon-mdx-gfm'
],

webpackFinal: async (config, { configType }) => {
// Resolve error when webpack-ing storybook:
// Can't import the named export 'Children' from non EcmaScript module (only
// default export is available)
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
});

return config;
},
framework: {
name: '@storybook/react-webpack5',
options: {}
Expand Down
32 changes: 29 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
},
"dependencies": {
"@floating-ui/dom": "^0.1.10",
"framer-motion": "^4.1.17",
"@storybook/preview-api": "^7.5.1"

}
}

0 comments on commit f46b123

Please sign in to comment.