Skip to content

Commit

Permalink
Cleanup babel config (#5414)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 9, 2024
1 parent 572e67a commit 3701621
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 176 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

10 changes: 10 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
]
}
150 changes: 1 addition & 149 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@
"@babel/cli": "7.25.6",
"@babel/core": "7.25.2",
"@babel/eslint-parser": "7.25.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.24.7",
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
"@babel/plugin-proposal-function-sent": "7.24.7",
"@babel/plugin-proposal-numeric-separator": "7.18.6",
"@babel/plugin-proposal-throw-expressions": "7.24.7",
"@babel/preset-env": "7.25.4",
"@babel/register": "7.24.6",
"async": "3.2.6",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
rules: [
{
use: 'babel-loader',
// babel options are in .babelrc
// babel options are in babel.config.json
exclude: /(node_modules|bower_components)/,
test: /\.js$/,
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.l10n.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const webpack = require('webpack');

const webpackConfig = require('./webpack.config');

const babelrc = fs.readFileSync('./.babelrc');
const babelrc = fs.readFileSync('./babel.config.json');
const babelrcObject = JSON.parse(babelrc);
const babelPlugins = babelrcObject.plugins || [];

Expand Down

0 comments on commit 3701621

Please sign in to comment.