From 25091d03af771c9e8e5e94fbdccd6228247710c1 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 18 Nov 2021 23:44:19 -0500 Subject: [PATCH] fix(build): add DOM purify optional default import to fix rollup builds --- .../angular-slickgrid/extensions/rowDetailViewExtension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.ts b/src/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.ts index 47d0d5d6e..ba96034eb 100644 --- a/src/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.ts +++ b/src/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.ts @@ -17,7 +17,7 @@ import { import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; import { Observable, Subject, Subscription } from 'rxjs'; import * as DOMPurify_ from 'dompurify'; -const DOMPurify = DOMPurify_; // patch to fix rollup to work +const DOMPurify = (DOMPurify_ as any)['default'] || DOMPurify_; // patch to fix rollup to work import { GridOption, RowDetailView } from '../models/index'; import { AngularUtilService } from '../services/angularUtil.service';