Skip to content

Commit

Permalink
workflow(sfc-playground): warn on <style module> usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 30, 2021
1 parent c771b1d commit b6298db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sfc-playground/src/sfcCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit b6298db

Please sign in to comment.