We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c129748 commit 86a5f7aCopy full SHA for 86a5f7a
1 file changed
.storybook/main.js
@@ -1,5 +1,6 @@
1
const sass = require("sass");
2
const sassRenderSyncConfig = require("./../scripts/sassConfig");
3
+const path = require("path");
4
module.exports = {
5
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
6
addons: [
@@ -84,6 +85,11 @@ module.exports = {
84
85
return rule;
86
}),
87
];
88
+ config.resolve.alias = {
89
+ ...config.resolve.alias,
90
+ // Fix nasty bug with importing from this package, Storybook webpack cannot resolve it otherwise
91
+ "@codemirror/legacy-modes": path.resolve(__dirname, "../node_modules/@codemirror/legacy-modes"),
92
+ };
93
return config;
94
},
95
docs: {
0 commit comments