|
|
|
@ -269,8 +269,9 @@ export default function dom(
|
|
|
|
|
|
|
|
|
|
let result = builder
|
|
|
|
|
.toString()
|
|
|
|
|
.replace(/(\\\\)?@(\w*)/g, (match: string, escaped: string, name: string) => {
|
|
|
|
|
.replace(/(\\\\)?([@#])(\w*)/g, (match: string, escaped: string, sigil: string, name: string) => {
|
|
|
|
|
if (escaped) return match.slice(2);
|
|
|
|
|
if (sigil !== '@') return match;
|
|
|
|
|
|
|
|
|
|
if (name in shared) {
|
|
|
|
|
if (options.dev && `${name}Dev` in shared) name = `${name}Dev`;
|
|
|
|
|