Skip to content

Commit 582ac7c

Browse files
devongovettLFDanLu
andauthored
Remove storybook addon links (#3813)
* Remove storybook addon links * prevent out of memory infinite loop crash when saving CSF stories Co-authored-by: Daniel Lu <[email protected]>
1 parent 2eac298 commit 582ac7c

File tree

5 files changed

+7
-22
lines changed

5 files changed

+7
-22
lines changed

.chromatic/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = {
66
stories: ['../packages/**/chromatic/**/*.chromatic.{js,jsx,ts,tsx}'],
77
addons: [
88
'@storybook/addon-actions',
9-
'@storybook/addon-links',
109
'@storybook/addon-a11y'
1110
],
1211
typescript: {

.storybook/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = {
66
stories: ['../packages/*/*/stories/*.stories.{js,jsx,ts,tsx}'],
77
addons: [
88
'@storybook/addon-actions',
9-
'@storybook/addon-links',
109
'@storybook/addon-a11y',
1110
'@storybook/addon-controls',
1211
'storybook-dark-mode',

.storybook/preview.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ export const parameters = {
1414
storySort: (a, b) => a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true }),
1515
},
1616
a11y: {},
17-
layout: 'fullscreen'
17+
layout: 'fullscreen',
18+
// Stops infinite loop memory crash when saving CSF stories https://github.com/storybookjs/storybook/issues/12747#issuecomment-1151803506
19+
docs: {
20+
source: {
21+
type: 'code'
22+
}
23+
}
1824
};
1925

2026
export const decorators = [

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"@storybook/addon-a11y": "^6.5.12",
8080
"@storybook/addon-actions": "^6.5.12",
8181
"@storybook/addon-controls": "^6.5.12",
82-
"@storybook/addon-links": "^6.5.12",
8382
"@storybook/addons": "^6.5.12",
8483
"@storybook/api": "^6.5.12",
8584
"@storybook/components": "^6.5.12",

yarn.lock

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,24 +3388,6 @@
33883388
lodash "^4.17.21"
33893389
ts-dedent "^2.0.0"
33903390

3391-
"@storybook/addon-links@^6.5.12":
3392-
version "6.5.12"
3393-
resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-6.5.12.tgz#57ec0c651ef29f9d969a2d715f85a69d5ce29e60"
3394-
integrity sha512-Dyt922J5nTBwM/9KtuuDIt3sX8xdTkKh+aXSoOX6OzT04Xwm5NumFOvuQ2YA00EM+3Ihn7Ayc3urvxnHTixmKg==
3395-
dependencies:
3396-
"@storybook/addons" "6.5.12"
3397-
"@storybook/client-logger" "6.5.12"
3398-
"@storybook/core-events" "6.5.12"
3399-
"@storybook/csf" "0.0.2--canary.4566f4d.1"
3400-
"@storybook/router" "6.5.12"
3401-
"@types/qs" "^6.9.5"
3402-
core-js "^3.8.2"
3403-
global "^4.4.0"
3404-
prop-types "^15.7.2"
3405-
qs "^6.10.0"
3406-
regenerator-runtime "^0.13.7"
3407-
ts-dedent "^2.0.0"
3408-
34093391
"@storybook/[email protected]", "@storybook/addons@^6.5.12":
34103392
version "6.5.12"
34113393
resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-6.5.12.tgz#891767b5f88ea99b956cf19e9e2893594068adc7"

0 commit comments

Comments
 (0)