Skip to content

Commit

Permalink
add targets to babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Jan 13, 2023
1 parent 283d0be commit bdee33f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,23 @@ module.exports = (api) => {
'@babel/plugin-transform-typeof-symbol',
'@babel/plugin-transform-computed-properties',
],
targets: [
'last 1 version',
'> 1%',
// ie 11 is dead and no longer supported
'not dead',
'chrome >= 55',
'firefox >= 52',
'edge >= 15',
'opera >= 42',
'safari >= 11',
],
},
],
],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-arrow-functions',
],
};

Expand Down
4 changes: 1 addition & 3 deletions src/redirects/ati-smarttag.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ export function ATInternetSmartTag(source) {

const smartTagWrapper = {
Tracker: {
Tag() {
return new tag(); // eslint-disable-line new-cap
},
Tag: tag,
},
};

Expand Down
8 changes: 2 additions & 6 deletions src/redirects/matomo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ export function Matomo(source) {
AsyncTracker.prototype.addListener = noopFunc;

const matomoWrapper = {
getTracker() {
return new Tracker();
},
getAsyncTracker() {
return new AsyncTracker();
},
getTracker: Tracker,
getAsyncTracker: AsyncTracker,
};

window.Piwik = matomoWrapper;
Expand Down

0 comments on commit bdee33f

Please sign in to comment.