Skip to content

Commit ee94dc5

Browse files
committed
fix: restore compatibility with stackblitz
Fixes mattlewis92/angular-calendar#1012
1 parent 91b2419 commit ee94dc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rollup.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const base = {
2323
},
2424
plugins: [
2525
replace({
26-
'var requestAnimationFrame': "var window = typeof window === \"undefined\" ? {} : window;\nvar requestAnimationFrame"
26+
'var requestAnimationFrame': "var window = typeof window !== \"undefined\" ? window : {};\nvar requestAnimationFrame",
27+
'window\.setTimeout': 'setTimeout',
28+
'window\.clearTimeout': 'clearTimeout'
2729
}),
2830
resolve({ module: true }),
2931
commonjs()

0 commit comments

Comments
 (0)