Skip to content

Commit

Permalink
[INTERNAL] webpack: Use babel for polyfills / transpiling
Browse files Browse the repository at this point in the history
- Use babel with preset-env and custom browser target list according to
browsers supported by UI5
- Remove polyfills

See: #112
Closes: #116
  • Loading branch information
matz3 committed Oct 9, 2019
1 parent 780c1c6 commit 28a29ec
Show file tree
Hide file tree
Showing 5 changed files with 928 additions and 39 deletions.
1 change: 0 additions & 1 deletion lib/client/browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require("url-polyfill");
const istanbulLibCoverage = require("istanbul-lib-coverage");
require("./discovery.js");

Expand Down
8 changes: 3 additions & 5 deletions lib/client/discovery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const Promise = require("es6-promise").Promise;
const assign = require("lodash.assign");

(function(window) {
const karma = window.__karma__;
Expand All @@ -23,7 +21,7 @@ const assign = require("lodash.assign");
if ( /^(\/test-resources\/(test-)?resources)/.test(sTestPage) ) {
sTestPage = sTestPage.slice("/test-resources".length);
}
this.aPages.push(assign({fullpage: sTestPage}, oConfig));
this.aPages.push(Object.assign({fullpage: sTestPage}, oConfig));
};

function getFile(sUrl) {
Expand Down Expand Up @@ -77,7 +75,7 @@ const assign = require("lodash.assign");
return !test.suite;
}).length === aTests.length;

resolve(assign({
resolve(Object.assign({
tests: aTests,
simple: bPass
}, oTestPageConfig));
Expand All @@ -87,7 +85,7 @@ const assign = require("lodash.assign");
if (frame.parentNode) {
frame.parentNode.removeChild(frame);
}
reject(assign({error: oError}, oTestPageConfig));
reject(Object.assign({error: oError}, oTestPageConfig));
});
};

Expand Down
Loading

0 comments on commit 28a29ec

Please sign in to comment.