Skip to content

Commit

Permalink
fix: remove need for server side rendering hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwolfskin0302 authored and mattlewis92 committed Apr 12, 2020
1 parent b2ea479 commit a16afd9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 56 deletions.
57 changes: 12 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"rollup": "^1.24.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.1.2",
"rxjs": "^6.5.3",
"sinon": "^7.5.0",
Expand All @@ -102,7 +101,7 @@
}
},
"dependencies": {
"dom-autoscroller": "^2.3.4"
"@mattlewis92/dom-autoscroller": "^2.3.7"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion projects/angular-draggable-droppable/custom-typings.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module 'dom-autoscroller';
declare module '@mattlewis92/dom-autoscroller';
2 changes: 1 addition & 1 deletion projects/angular-draggable-droppable/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
},
"whitelistedNonPeerDependencies": [
"tslib",
"dom-autoscroller"
"@mattlewis92/dom-autoscroller"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
} from 'rxjs/operators';
import { CurrentDragData, DraggableHelper } from './draggable-helper.provider';
import { DOCUMENT } from '@angular/common';
import autoScroll from 'dom-autoscroller';
import autoScroll from '@mattlewis92/dom-autoscroller';
import { DraggableScrollContainerDirective } from './draggable-scroll-container.directive';
import { addClass, removeClass } from './util';

Expand Down
6 changes: 0 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import replace from 'rollup-plugin-replace';

const input =
'dist/angular-draggable-droppable/bundles/angular-draggable-droppable.umd.js';
Expand All @@ -22,11 +21,6 @@ const base = {
}
},
plugins: [
replace({
'var requestAnimationFrame': "var window = typeof window !== \"undefined\" ? window : {};\nvar requestAnimationFrame",
'window\.setTimeout': 'setTimeout',
'window\.clearTimeout': 'clearTimeout'
}),
resolve({ module: true }),
commonjs()
],
Expand Down

0 comments on commit a16afd9

Please sign in to comment.