Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 3eb091e

Browse files
authored
Merge pull request #858 from ghiscoding/bugfix/dom-purify-default-import
fix(build): add DOM purify optional default import to fix rollup builds
2 parents f74a654 + 25091d0 commit 3eb091e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
1818
import { Observable, Subject, Subscription } from 'rxjs';
1919
import * as DOMPurify_ from 'dompurify';
20-
const DOMPurify = DOMPurify_; // patch to fix rollup to work
20+
const DOMPurify = (DOMPurify_ as any)['default'] || DOMPurify_; // patch to fix rollup to work
2121

2222
import { GridOption, RowDetailView } from '../models/index';
2323
import { AngularUtilService } from '../services/angularUtil.service';

0 commit comments

Comments
 (0)