Skip to content

Commit

Permalink
fixed babel target for browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Dec 22, 2024
1 parent d71c252 commit a7ff602
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ var pkg = require('./package.json');

var banner = '/*! ' + pkg.name + ' v' + pkg.version + ', @license ' + pkg.license + ', @link ' + pkg.homepage + ' */';

var supportedBrowsers = {
"chrome": "109",
"edge": "109",
"firefox": "102",
"safari": "14"
};

module.exports = {
mode: 'production',
entry: {
Expand Down Expand Up @@ -46,12 +53,7 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
"chrome": "109",
"edge": "109",
"firefox": "102",
"safari": "14"
},
targets: supportedBrowsers,
modules: false,
useBuiltIns: 'usage',
// TODO: after fix in babel remove corejs version and remove core-js dependency in package.json
Expand Down Expand Up @@ -95,9 +97,7 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
"ie": "11"
},
targets: supportedBrowsers,
modules: false,
useBuiltIns: 'usage',
// TODO: after fix in babel remove corejs version and remove core-js dependency in package.json
Expand Down

0 comments on commit a7ff602

Please sign in to comment.