workflow(sfc-playground): warn on <style module> usage
This commit is contained in:
parent
c771b1dc80
commit
b6298dbd01
@ -115,8 +115,8 @@ export async function compileFile({ filename, code, compiled }: File) {
|
|||||||
let css = ''
|
let css = ''
|
||||||
for (const style of descriptor.styles) {
|
for (const style of descriptor.styles) {
|
||||||
if (style.module) {
|
if (style.module) {
|
||||||
// TODO error
|
store.errors = [`<style module> is not supported in the playground.`]
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const styleResult = await compileStyleAsync({
|
const styleResult = await compileStyleAsync({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user