@@ -18,8 +18,10 @@ export function configureNuxt(
1818
1919 const runtimeDir = ctx . resolver . resolve ( './runtime' )
2020
21- nuxt . options . build . transpile . push ( configKey )
22- nuxt . options . build . transpile . push ( runtimeDir )
21+ if ( ! nuxt . options . ssr ) {
22+ nuxt . options . build . transpile . push ( configKey )
23+ nuxt . options . build . transpile . push ( runtimeDir )
24+ }
2325
2426 nuxt . options . css ??= [ ]
2527 if ( typeof styles === 'string' && [ 'sass' , 'expose' ] . includes ( styles ) )
@@ -29,11 +31,10 @@ export function configureNuxt(
2931 else if ( typeof styles === 'object' && typeof styles ?. configFile === 'string' )
3032 nuxt . options . css . unshift ( styles . configFile )
3133
32- if ( includeTransformAssetsUrls ) {
34+ if ( includeTransformAssetsUrls && typeof nuxt . options . vite . vue ?. template ?. transformAssetUrls === 'undefined' ) {
3335 nuxt . options . vite . vue ??= { }
3436 nuxt . options . vite . vue . template ??= { }
35- if ( typeof nuxt . options . vite . vue . template . transformAssetUrls === 'undefined' )
36- nuxt . options . vite . vue . template . transformAssetUrls = transformAssetUrls
37+ nuxt . options . vite . vue . template . transformAssetUrls = transformAssetUrls
3738 }
3839
3940 extendWebpackConfig ( ( ) => {
@@ -99,16 +100,9 @@ export function configureNuxt(
99100 } )
100101 }
101102
102- if ( nuxt . options . dev ) {
103+ if ( nuxt . options . dev || ctx . dateAdapter ) {
103104 addPlugin ( {
104105 src : ctx . resolver . resolve ( runtimeDir , 'plugins/vuetify-date' ) ,
105106 } )
106107 }
107- else {
108- if ( ctx . dateAdapter ) {
109- addPlugin ( {
110- src : ctx . resolver . resolve ( runtimeDir , 'plugins/vuetify-date' ) ,
111- } )
112- }
113- }
114108}
0 commit comments