Skip to content

Commit

Permalink
fix: change namespace imports to ESM default imports. Fixes Angular e…
Browse files Browse the repository at this point in the history
…sbuild error on DomPurify with rowDetailView and no pre/post template #1362
  • Loading branch information
jr01 committed Feb 7, 2024
1 parent 4fa022d commit fac2b37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"start": "ng serve --port 4300",
"prebuild": "npm-run-all delete:dist lint",
"build": "ng-packagr -p ng-package.json",
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
"postbuild": "npm-run-all copy:i18n",
"copy:i18n": "copyfiles -f src/assets/i18n/*.json dist/i18n",
"delete:dist": "rimraf dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { addToArrayWhenNotExists, castObservableToPromise, SlickRowSelectionMode
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
import { Observable, Subject } from 'rxjs';
import * as DOMPurify from 'dompurify';
import DOMPurify from 'dompurify';

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

0 comments on commit fac2b37

Please sign in to comment.