@@ -3,11 +3,12 @@ const tsconfigPaths = require('vite-tsconfig-paths').default;
3
3
module . exports = {
4
4
stories : [ '../packages/**/*.story.ts' , '../stories/**/*.story.ts' ] ,
5
5
addons : [
6
- '@storybook/addon-links' ,
7
6
'@storybook/addon-essentials' ,
7
+ '@storybook/addon-links' ,
8
8
'@storybook/addon-a11y' ,
9
9
'../storyhelpers/storybook-readme/preset.js' ,
10
10
] ,
11
+ framework : '@storybook/web-components' ,
11
12
core : { builder : '@storybook/builder-vite' } ,
12
13
staticDirs : [ './images' ] ,
13
14
@@ -22,16 +23,6 @@ module.exports = {
22
23
if ( configType === 'DEVELOPMENT' ) {
23
24
// add plugins
24
25
config . plugins . push ( tsconfigPaths ( ) ) ;
25
-
26
- // pre bundle dependencies for faster startup time
27
- config . optimizeDeps . include . push ( '@storybook/web-components' ) ;
28
- config . optimizeDeps . include . push ( 'lit-html' ) ;
29
- config . optimizeDeps . include . push ( 'lit' ) ;
30
- config . optimizeDeps . include . push ( 'lit/decorators.js' ) ;
31
- config . optimizeDeps . include . push ( 'lit/directives/style-map.js' ) ;
32
- config . optimizeDeps . include . push ( 'lit/directives/if-defined.js' ) ;
33
- config . optimizeDeps . include . push ( 'lit/directives/unsafe-html.js' ) ;
34
- config . optimizeDeps . include . push ( 'element-internals-polyfill' ) ;
35
26
}
36
27
37
28
return config ;
0 commit comments