Skip to content

Commit

Permalink
[ui-core] Upgrade babel and webpack to the latest versions
Browse files Browse the repository at this point in the history
A couple of syntax proposal plugins has been removed as they've been accepted and are now part of Babel preset env.
  • Loading branch information
JohanAhlen committed Jul 17, 2024
1 parent 4c3bbcb commit 1e666be
Show file tree
Hide file tree
Showing 7 changed files with 1,085 additions and 2,114 deletions.
26 changes: 8 additions & 18 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,20 @@ module.exports = function (api) {
api.cache(true);
api.assertVersion('^7.4.5');

const presets = ['babel-preset-typescript-vue3', '@babel/typescript', '@babel/preset-env', '@babel/preset-react'];
const presets = [
'babel-preset-typescript-vue3',
'@babel/typescript',
'@babel/preset-env',
'@babel/preset-react'
];
const plugins = [
[
'module-resolver',
{
root: ['./desktop/core/src/desktop/js']
}
],
'@babel/plugin-syntax-dynamic-import',
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
[
'@babel/proposal-class-properties',
{
loose: true
}
],
['@babel/plugin-proposal-private-methods', { loose: true }],
'@babel/proposal-object-rest-spread'
['@babel/plugin-proposal-decorators', { version: '2023-11' }]
];

const overrides = [
Expand All @@ -65,8 +56,7 @@ module.exports = function (api) {
{
root: ['./desktop/core/src/desktop/js']
}
],
'@babel/plugin-syntax-dynamic-import'
]
]
}
};
Expand Down
Loading

0 comments on commit 1e666be

Please sign in to comment.