]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow(sfc-playground): warn on <style module> usage
authorEvan You <yyx990803@gmail.com>
Tue, 30 Mar 2021 16:39:08 +0000 (12:39 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 30 Mar 2021 16:39:08 +0000 (12:39 -0400)
packages/sfc-playground/src/sfcCompiler.ts

index e0ab8d2f9cfff570a293ec300dc906a80e46388b..79a088c09c1b25efc85dff1f19b9aa54e60a1910 100644 (file)
@@ -115,8 +115,8 @@ export async function compileFile({ filename, code, compiled }: File) {
   let css = ''
   for (const style of descriptor.styles) {
     if (style.module) {
-      // TODO error
-      continue
+      store.errors = [`<style module> is not supported in the playground.`]
+      return
     }
 
     const styleResult = await compileStyleAsync({