Skip to content

Commit

Permalink
fix(polyfill): Remove IE11 polyfills (#1515)
Browse files Browse the repository at this point in the history
* fix(polyfill): Remove IE11 polyfills

* fix(polyfill): Remove additional IE11 polyfill

* fix(polyfill): Remove unneeded polyfills

* fix(polyfill): Remove polyfill.js
  • Loading branch information
JChan106 authored May 7, 2024
1 parent be98082 commit 978aadd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 413 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = api => {
exclude: [
'**/*-test.js',
'build/**',
'src/lib/polyfill.js',
'src/lib/browser.js',
'src/lib/viewers/box3d/model3d/Model3DAnimationClipsPullup.js',
'src/lib/viewers/box3d/model3d/model3DSettingsPullup.js',
Expand Down
1 change: 0 additions & 1 deletion src/lib/Preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable import/first */
import './polyfill';
import EventEmitter from 'events';
import cloneDeep from 'lodash/cloneDeep';
import throttle from 'lodash/throttle';
Expand Down
4 changes: 4 additions & 0 deletions src/lib/__tests__/Preview-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe('lib/Preview', () => {
preview.logger = new Logger();
stubs = {};
stubs.api = new Api();
window.PerformanceObserver = jest.fn(() => ({
disconnect: jest.fn(),
observe: jest.fn(),
}));
});

afterEach(() => {
Expand Down
Loading

0 comments on commit 978aadd

Please sign in to comment.