Open DarrenXu94 opened 3 years ago
Add tsconfig-paths-webpack-plugin.
Updated .storybook/main.js folder to allow for paths defined in the tsconfig.json
config.resolve.plugins = [ new TsconfigPathsPlugin({ configFile: path.resolve(__dirname, "../tsconfig.json"), }), ];
tsconfig.json
"paths": { "~/*": ["./*"] },
This will allow you to import from "~/src"
Add tsconfig-paths-webpack-plugin.
Updated .storybook/main.js folder to allow for paths defined in the tsconfig.json
tsconfig.json
This will allow you to import from "~/src"