mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Merge pull request #14246 from phunkren/patch-1
Updated refs function signature to include StorybookOptions object
This commit is contained in:
commit
daba4282e6
@ -3,10 +3,8 @@
|
||||
|
||||
module.exports = {
|
||||
// Your existing Storybook configuration
|
||||
refs: (config) => {
|
||||
//👇 Retrieves the current environment from the config object
|
||||
const { configType } = config;
|
||||
|
||||
// 👇 Retrieve the current environment from the configType argument
|
||||
refs: (config, { configType }) => {
|
||||
if (configType === 'DEVELOPMENT') {
|
||||
return {
|
||||
react: {
|
||||
@ -31,4 +29,4 @@ module.exports = {
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user