Closed ilovejs closed 2 years ago
@ilovejs , this works for me ..
const tsconfigPaths = require('vite-tsconfig-paths').default;
FWIW, I needed to do this to get things working with storybook-builder-vite:
...
async viteFinal(config) {
config.plugins = [...config.plugins, tsconfigPaths()];
return config;
}
...
FWIW, I needed to do this to get things working with storybook-builder-vite:
... async viteFinal(config) { config.plugins = [...config.plugins, tsconfigPaths()]; return config; } ...
Fixed my problem! It was failing to use the imports I was using in my code
https://github.com/eirslett/storybook-builder-vite
After init, .storybook/main.js
This won't work