Skip to content

Commit

Permalink
[email protected] - Update babel to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-marjoram committed Apr 30, 2024
1 parent 71dc3a7 commit a17cfca
Show file tree
Hide file tree
Showing 59 changed files with 499 additions and 929 deletions.
7 changes: 1 addition & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ module.exports = api => {
// Use isTest to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-class-properties'
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -18,7 +14,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@
"typesafe-i18n": "5.16.3"
},
"devDependencies": {
"@babel/cli": "7.14.8",
"@babel/core": "7.14.8",
"@babel/eslint-parser": "7.16.5",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-proposal-optional-chaining": "7.14.5",
"@babel/plugin-transform-runtime": "7.14.5",
"@babel/preset-env": "7.14.9",
"@babel/register": "7.14.5",
"@babel/cli": "7.24.5",
"@babel/core": "7.24.5",
"@babel/eslint-parser": "7.24.5",
"@babel/plugin-transform-runtime": "7.24.3",
"@babel/preset-env": "7.24.5",
"@babel/register": "7.23.7",
"@faker-js/faker": "7.5.0",
"@justeat/browserslist-config-fozzie": "1.2.0",
"@justeat/eslint-config-fozzie": "5.4.0",
Expand Down
6 changes: 1 addition & 5 deletions packages/components/atoms/f-button/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-card/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -16,7 +13,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-error-boundary/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-error-message/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-filter-pill/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-form-field/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -17,7 +14,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-image-tile/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-link/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-popover/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-spinner/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/atoms/f-toggle-switch/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/molecules/f-alert/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/molecules/f-breadcrumbs/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining', // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
'@babel/plugin-proposal-class-properties' // https://babeljs.io/docs/en/babel-plugin-proposal-class-properties
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -21,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
6 changes: 1 addition & 5 deletions packages/components/molecules/f-mega-modal/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use isTest to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining'
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -18,7 +15,6 @@ module.exports = api => {


return {
presets,
plugins
presets
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = api => {
// Use `isTest` to determine what presets and plugins to use with jest
const isTest = api.env('test');
const presets = [];
const plugins = [
'@babel/plugin-proposal-optional-chaining' // https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
];
const builtIns = (api.env('development') ? 'entry' : false);

if (!isTest) {
Expand All @@ -20,7 +17,6 @@ module.exports = api => {
}

return {
presets,
plugins
presets
};
};
Loading

0 comments on commit a17cfca

Please sign in to comment.