Commit 1a48095 1 parent 4f39f39 commit 1a48095 Copy full SHA for 1a48095
File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,19 @@ export const componentsManifestTemplate = (manifest: Manifest) => {
127
127
write : true ,
128
128
getContents : ( { app, nuxt, options } ) => {
129
129
const componentsMap = app . components
130
- . filter ( c => ! c . island && ( nuxt . options . dev || options . manifest . components . includes ( c . pascalName ) || c . global ) )
130
+ . filter ( ( c ) => {
131
+ // Ignore island components
132
+ if ( c . island ) {
133
+ return false
134
+ }
135
+
136
+ // Ignore css modules
137
+ if ( c . filePath . endsWith ( '.css' ) ) {
138
+ return false
139
+ }
140
+
141
+ return nuxt . options . dev || options . manifest . components . includes ( c . pascalName ) || c . global
142
+ } )
131
143
. reduce ( ( map , c ) => {
132
144
map [ c . pascalName ] = map [ c . pascalName ] || [
133
145
c . pascalName ,
You can’t perform that action at this time.
0 commit comments