packages/storybook: make src-relative imports work

This commit is contained in:
Patrik Oldsberg
2020-04-08 00:41:11 +02:00
parent 28dacb05fe
commit 7463309e58
+3
View File
@@ -1,3 +1,5 @@
const path = require('path');
module.exports = {
stories: [
'../../core/src/layout/**/*.stories.tsx',
@@ -5,6 +7,7 @@ module.exports = {
],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
webpackFinal: async config => {
config.resolve.modules.push(path.resolve(__dirname, '../../core/src'));
config.module.rules.push(
{
test: /\.(ts|tsx)$/,