add typings script to prepack
This commit is contained in:
@@ -165,7 +165,11 @@ export function transformAttribute(
|
||||
// relative path in attribute
|
||||
if (name === 'src' || ((name === 'href' || name === 'xlink:href') && value)) {
|
||||
return absoluteToDoc(doc, value);
|
||||
} else if (name === 'background' && value && (tagName === 'table' || tagName == 'td' || tagName == 'th')) {
|
||||
} else if (
|
||||
name === 'background' &&
|
||||
value &&
|
||||
(tagName === 'table' || tagName === 'td' || tagName === 'th')
|
||||
) {
|
||||
return absoluteToDoc(doc, value);
|
||||
} else if (name === 'srcset' && value) {
|
||||
return getAbsoluteSrcsetString(doc, value);
|
||||
|
||||
Reference in New Issue
Block a user