Skip to content

Commit

Permalink
fix(build): DOMPurify import fix for all framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 9, 2021
1 parent bf0c912 commit c551d0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/binding/src/binding.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-bitwise */
import * as DOMPurify_ from 'dompurify';
const DOMPurify = (DOMPurify_ as any)['default'] || DOMPurify_; // patch to fix rollup to work
import * as DOMPurify from 'dompurify';

interface Binding {
variable: any;
Expand Down
4 changes: 1 addition & 3 deletions packages/common/src/services/domUtilities.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as DOMPurify_ from 'dompurify';
const DOMPurify = (DOMPurify_ as any)['default'] || DOMPurify_; // patch to fix rollup to work

import * as DOMPurify from 'dompurify';
import { InferDOMType, SearchTerm } from '../enums/index';
import { Column, GridOption, HtmlElementPosition, SelectOption, SlickGrid, } from '../interfaces/index';
import { TranslaterService } from './translater.service';
Expand Down

0 comments on commit c551d0c

Please sign in to comment.