Skip to content

Commit

Permalink
Drop polyfills from the build
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfoucrier committed Jan 3, 2021
1 parent 4058f0f commit 9c6cb5a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 56 deletions.
6 changes: 0 additions & 6 deletions spec/tween/tweener.coffee
Expand Up @@ -9,12 +9,6 @@ describe 'Tweener ->', ->
expect(t.tweens).toBeDefined()
expect(t.tweens instanceof Array).toBe true

describe 'polyfills ->', ->
it 'should have performance now defined', ->
expect(window.performance.now).toBeDefined()
it 'should have requestAnimationFrame defined', ->
expect(window.requestAnimationFrame).toBeDefined()

describe '_loop ->', ->
it 'should loop over', (dfr)->
t._startLoop()
Expand Down
11 changes: 0 additions & 11 deletions src/polyfills/performance.coffee

This file was deleted.

35 changes: 0 additions & 35 deletions src/polyfills/raf.coffee

This file was deleted.

3 changes: 0 additions & 3 deletions src/tween/tweener.babel.js
@@ -1,6 +1,3 @@
import 'polyfills/raf';
import 'polyfills/performance';

class Tweener {
constructor() {
this._vars();
Expand Down
1 change: 0 additions & 1 deletion webpack.common.js
Expand Up @@ -22,7 +22,6 @@ module.exports = () => ({
src: 'root/src/',
delta: 'src/delta',
easing: 'src/easing',
polyfills: 'src/polyfills',
shapes: 'src/shapes',
tween: 'src/tween',
vendor: 'src/vendor',
Expand Down

0 comments on commit 9c6cb5a

Please sign in to comment.