workflow(sfc-playground): warn on <style module> usage
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user