Skip to content

Commit b6298db

Browse files
committed
workflow(sfc-playground): warn on <style module> usage
1 parent c771b1d commit b6298db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sfc-playground/src/sfcCompiler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export async function compileFile({ filename, code, compiled }: File) {
115115
let css = ''
116116
for (const style of descriptor.styles) {
117117
if (style.module) {
118-
// TODO error
119-
continue
118+
store.errors = [`<style module> is not supported in the playground.`]
119+
return
120120
}
121121

122122
const styleResult = await compileStyleAsync({

0 commit comments

Comments
 (0)