fix(compiler-core): assest id (#190)
* fix(compile-core): asset id * test(compile-core): asset id
This commit is contained in:
@@ -241,7 +241,7 @@ export function toValidAssetId(
|
||||
name: string,
|
||||
type: 'component' | 'directive'
|
||||
): string {
|
||||
return `_${type}_${name.replace(/[^\w]/g, '')}`
|
||||
return `_${type}_${name.replace(/[^\w]/g, '_')}`
|
||||
}
|
||||
|
||||
export function isEmptyExpression(node: ExpressionNode) {
|
||||
|
||||
Reference in New Issue
Block a user