Skip to content

Commit

Permalink
chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyxu1102 committed Dec 11, 2022
1 parent 39c547d commit f74be74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/rewriteDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { parse, ParserPlugin } from '@babel/parser'
import MagicString from 'magic-string'

const defaultExportRE = /((?:^|\n|;)\s*)export(\s*)default/
const namedDefaultExportRE = /((?:^|\n|;)\s*)export((.|\n)+)(?:as)?(\s*)default/
const namedDefaultExportRE = /((?:^|\n|;)\s*)export([\s\S]+)(?:as)?(\s*)default/
const exportDefaultClassRE =
/((?:^|\n|;)\s*)export\s+default\s+class\s+([\w$]+)/

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/normalizeProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function normalizeStyle(

const listDelimiterRE = /;(?![^(]*\))/g
const propertyDelimiterRE = /:([^]+)/
const styleCommentRE = /\/\*(\n|.)*?\*\//g
const styleCommentRE = /\/\*[\s\S]*?\*\//g

export function parseStringStyle(cssText: string): NormalizedStyle {
const ret: NormalizedStyle = {}
Expand Down

0 comments on commit f74be74

Please sign in to comment.