Skip to content
Snippets Groups Projects
Commit c911ba8b authored by Igor Markin's avatar Igor Markin
Browse files

Switch build target to ES2015

parent 8db4666b
No related branches found
No related tags found
1 merge request!22"Rework normalisation logic to handle new seal templates"
......@@ -20,7 +20,7 @@ const normalizeVendorHtml = (document, vendor, sealRemovalOptions) => {
/**
* Apply document normalisations
*/
common_1.normalizeDocumentCommon(document.body, sealRemovalOptions?.sealContainerId);
common_1.normalizeDocumentCommon(document.body, sealRemovalOptions === null || sealRemovalOptions === void 0 ? void 0 : sealRemovalOptions.sealContainerId);
const normalizeDocument = documentNormalizationFunctions[vendor];
if (normalizeDocument) {
normalizeDocument(document);
......
......@@ -58,7 +58,7 @@ const removeSeal = (rootNode, sealContainerId) => {
while (queue.length) {
const element = queue.shift();
const id = element.getAttribute("id");
if (id?.includes(sealContainerId)) {
if (id === null || id === void 0 ? void 0 : id.includes(sealContainerId)) {
element.parentNode.removeChild(element);
break;
}
......
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"target": "es2015",
"declaration": true,
"outDir": "./dist",
"allowJs": true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment