Skip to content

Commit

Permalink
remove getAbsolutePath to resolve build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvisser committed Dec 16, 2024
1 parent 1f80211 commit 8a7ecd1
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions packages/storybook/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { dirname, join } from 'path';
import remarkGfm from 'remark-gfm';
import CircularDependencyPlugin from 'circular-dependency-plugin';
import TerserPlugin from 'terser-webpack-plugin';
Expand All @@ -12,13 +11,13 @@ export const stories = [
];
export const addons = [
{
name: getAbsolutePath('@storybook/addon-essentials'),
name: '@storybook/addon-essentials',
options: {
outline: false,
docs: false
}
}, {
name: getAbsolutePath('@storybook/addon-docs'),
name: '@storybook/addon-docs',
options: {
mdxPluginOptions: {
mdxCompileOptions: {
Expand All @@ -27,11 +26,11 @@ export const addons = [
}
}
},
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
getAbsolutePath('storybook-addon-pseudo-states')
'@storybook/addon-a11y',
'@storybook/addon-interactions',
'@chromatic-com/storybook',
'@storybook/addon-webpack5-compiler-swc',
'storybook-addon-pseudo-states'
];

export function webpackFinal(config) {
Expand Down Expand Up @@ -64,9 +63,5 @@ export function webpackFinal(config) {
}
export const staticDirs = ['public'];
export const framework = {
name: getAbsolutePath('@storybook/html-webpack5')
name: '@storybook/html-webpack5'
};

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, 'package.json')));
}

0 comments on commit 8a7ecd1

Please sign in to comment.