Skip to content

Commit

Permalink
Remove core js and polyfills causing issues when using library
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Musgrove committed Jul 9, 2024
1 parent c89ec07 commit 54063d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
"xmldoc": "^1.1.2"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/cli": "^7.24.7",
"@babel/core": "^7.24.7",
"@babel/plugin-transform-modules-commonjs": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"assert": "^2.0.0",
"babel-loader": "^8.2.2",
"brfs": "^2.0.2",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"core-js": "3.19.0",
"eslint": "^7.29.0",
"eslint-plugin-jsdoc": "^35.4.1",
"expose-loader": "^3.0.0",
Expand Down
6 changes: 0 additions & 6 deletions src/browser-extensions/URLBrowserResolver.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
'use strict';

// Internet Explorer polyfills
if (typeof window !== 'undefined' && !window.Promise) {
require('core-js/features/promise');
}
require('core-js/es/object/values');

var fetchUrl = function (url, headers) {
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
Expand Down
3 changes: 0 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ module.exports = {
"ie": "11"
},
modules: false,
useBuiltIns: 'usage',
// TODO: after fix in babel remove corejs version and remove core-js dependency in package.json
corejs: "3.0.0",
loose: true
}
]
Expand Down

0 comments on commit 54063d7

Please sign in to comment.