Skip to content

Commit d113a84

Browse files
committed
fix(configurator): fix storybook build
1 parent 37d7d21 commit d113a84

File tree

1 file changed

+7
-0
lines changed
  • packages/configurator/.storybook

1 file changed

+7
-0
lines changed

packages/configurator/.storybook/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable no-param-reassign */
22
const path = require("path");
3+
const { NormalModuleReplacementPlugin } = require("webpack");
34

45
module.exports = {
56
stories: ["../stories/**/*.stories.tsx"],
@@ -55,6 +56,12 @@ module.exports = {
5556
],
5657
});
5758

59+
config.plugins.push(
60+
new NormalModuleReplacementPlugin(
61+
/\.graphql$/,
62+
path.resolve(__dirname, "../src/gql/__generated__/index.tsx")
63+
)
64+
);
5865
return config;
5966
},
6067
};

0 commit comments

Comments
 (0)