Skip to content

Commit

Permalink
fix(doc-site): canvas not recognised automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mnischay committed Jan 11, 2024
1 parent 4c4a7f0 commit 1e42f58
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/doc-site/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ function getAbsolutePath(value) {

/** @type { import('@storybook/react-webpack5').StorybookConfig } */
const config = {
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
Expand All @@ -29,5 +32,14 @@ const config = {
docs: {
autodocs: 'tag',
},
swc: () => ({
jsc: {
transform: {
react: {
runtime: 'automatic',
},
},
},
}),
};
export default config;

0 comments on commit 1e42f58

Please sign in to comment.