File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,24 @@ export async function compileFile(
62
62
return errors
63
63
}
64
64
65
- if (
66
- descriptor . styles . some ( ( s ) => s . lang ) ||
67
- ( descriptor . template && descriptor . template . lang )
68
- ) {
65
+ const styleLang = descriptor . styles . map ( ( s ) => s . lang ) . filter ( Boolean )
66
+ const templateLang = descriptor . template ?. lang
67
+ if ( styleLang . length && templateLang ) {
68
+ return [
69
+ `lang="${ styleLang . join (
70
+ ',' ,
71
+ ) } " pre-processors for <style> and lang="${ templateLang } " for <template> are currently not supported.`,
72
+ ]
73
+ }
74
+ if ( styleLang . length ) {
75
+ return [
76
+ `lang="${ styleLang . join (
77
+ ',' ,
78
+ ) } " pre-processors for <style> are currently not supported.`,
79
+ ]
80
+ } else if ( templateLang ) {
69
81
return [
70
- `lang="x" pre-processors for <template> or <style> are currently not ` +
71
- `supported.` ,
82
+ `lang="${ templateLang } " pre-processors for <template> are currently not supported.` ,
72
83
]
73
84
}
74
85
You can’t perform that action at this time.
0 commit comments