@@ -4,27 +4,6 @@ import pkg from './package.json'
4
4
export const wrappedPrimeInputs : string [ ] = [ 'AutoComplete' , 'CascadeSelect' , 'Checkbox' , 'Chip' , 'ColorPicker' , 'DatePicker' , 'Editor' , 'InputMask' , 'InputNumber' , 'InputOtp' , 'InputText' , 'Knob' , 'Listbox' , 'MultiSelect' , 'Password' , 'RadioButton' , 'Rating' , 'Select' , 'SelectButton' , 'Slider' , 'Textarea' , 'ToggleButton' , 'ToggleSwitch' , 'TreeSelect' ]
5
5
6
6
export default defineNuxtConfig ( {
7
- future : {
8
- compatibilityVersion : 4 ,
9
- } ,
10
- experimental : {
11
- appManifest : false ,
12
- } ,
13
- debug : false ,
14
-
15
- compatibilityDate : '2024-07-04' ,
16
-
17
- ssr : true ,
18
- devtools : { enabled : true } ,
19
-
20
- runtimeConfig : {
21
- public : {
22
- APP_VERSION : pkg . version ,
23
- APP_NAME : pkg . name ,
24
- // eslint-disable-next-line node/prefer-global/process
25
- APP_MODE : process . env ?. NODE_ENV ,
26
- } ,
27
- } ,
28
7
29
8
modules : [
30
9
'@pinia/nuxt' ,
@@ -37,6 +16,9 @@ export default defineNuxtConfig({
37
16
'@sfxcode/formkit-primevue-nuxt' ,
38
17
'@unocss/nuxt' ,
39
18
] ,
19
+
20
+ ssr : true ,
21
+ devtools : { enabled : true } ,
40
22
content : {
41
23
highlight : {
42
24
theme : {
@@ -49,6 +31,48 @@ export default defineNuxtConfig({
49
31
} ,
50
32
} ,
51
33
34
+ runtimeConfig : {
35
+ public : {
36
+ APP_VERSION : pkg . version ,
37
+ APP_NAME : pkg . name ,
38
+ // eslint-disable-next-line node/prefer-global/process
39
+ APP_MODE : process . env ?. NODE_ENV ,
40
+ } ,
41
+ } ,
42
+
43
+ build : {
44
+ transpile : [ 'nuxt' , 'primevue' , '@sfxcode/formkit-primevue' ] ,
45
+ } ,
46
+
47
+ sourcemap : {
48
+ client : false ,
49
+ server : false ,
50
+ } ,
51
+ future : {
52
+ compatibilityVersion : 4 ,
53
+ } ,
54
+ experimental : {
55
+ appManifest : false ,
56
+ } ,
57
+
58
+ compatibilityDate : '2024-07-04' ,
59
+ debug : false ,
60
+
61
+ eslint : {
62
+ config : {
63
+ standalone : false ,
64
+ nuxt : {
65
+ sortConfigKeys : true ,
66
+ } ,
67
+ } ,
68
+ } ,
69
+ formkitPrimevue : {
70
+ includePrimeIcons : true ,
71
+ includeStyles : true ,
72
+ installFormKit : true ,
73
+ installI18N : true ,
74
+ } ,
75
+
52
76
i18n : {
53
77
lazy : true ,
54
78
langDir : 'locales' ,
@@ -63,12 +87,6 @@ export default defineNuxtConfig({
63
87
optimizeTranslationDirective : false ,
64
88
} ,
65
89
} ,
66
- formkitPrimevue : {
67
- includePrimeIcons : true ,
68
- includeStyles : true ,
69
- installFormKit : true ,
70
- installI18N : true ,
71
- } ,
72
90
primevue : {
73
91
autoImport : true ,
74
92
options : {
@@ -81,28 +99,9 @@ export default defineNuxtConfig({
81
99
ripple : true ,
82
100
} ,
83
101
components : {
84
- exclude : [ ...wrappedPrimeInputs , 'Button' , 'Form' , 'FormField' ] ,
85
- } ,
86
-
87
- } ,
88
-
89
- build : {
90
- transpile : [ 'nuxt' , 'primevue' , '@sfxcode/formkit-primevue' ] ,
91
- } ,
92
-
93
- eslint : {
94
- config : {
95
- standalone : false ,
96
- nuxt : {
97
- sortConfigKeys : true ,
98
- } ,
102
+ exclude : [ ...wrappedPrimeInputs , 'Button' , 'Form' , 'FormField' , 'Chart' ] ,
99
103
} ,
100
- } ,
101
-
102
104
103
- sourcemap : {
104
- client : false ,
105
- server : false ,
106
105
} ,
107
106
108
107
} )
0 commit comments