File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,13 @@ class Config {
7878 return this . _typescript ;
7979 }
8080
81+ get renderMode ( ) {
82+ if ( this . config . template || this . config . target === 'web' ) {
83+ return 'csr' ;
84+ }
85+ return 'ssr' ;
86+ }
87+
8188 get postcss ( ) {
8289 return this . config . postcss ;
8390 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class WebpackBaseBuilder extends Config {
6767 const babelrc = this . projectBabelrc ? undefined : this . babelrc ;
6868 const babelOptions = this . merge ( babel . options , { babelrc } ) ;
6969 const babelLoaderString = `${ babel . loader } ?${ JSON . stringify ( babelOptions ) } ` ;
70- const entryLoaderString = this . utils . getLoaderOptionString ( loader , { templateFile } ) ;
70+ const entryLoaderString = this . utils . getLoaderOptionString ( loader , { templateFile, renderMode : this . renderMode } ) ;
7171 const regMatch = match instanceof RegExp ? match : new RegExp ( match ) ;
7272 Object . keys ( entries ) . forEach ( entryName => {
7373 const entryFile = entries [ entryName ] ;
You can’t perform that action at this time.
0 commit comments