Skip to content

Commit

Permalink
remove all plugins from babel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Dussart committed Apr 22, 2024
1 parent 42cb5a7 commit 3ef3a0f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 187 deletions.
41 changes: 0 additions & 41 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,47 +32,6 @@ module.exports = function(api) {
useBuiltIns: 'entry',
corejs: 3,
modules: false,
exclude: ['transform-typeof-symbol']
}
]
].filter(Boolean),
plugins: [
'babel-plugin-macros',
'@babel/plugin-syntax-dynamic-import',
isTestEnv && 'babel-plugin-dynamic-import-node',
'@babel/plugin-transform-destructuring',
[
'@babel/plugin-proposal-class-properties',
{
loose: true
}
],[
'@babel/plugin-proposal-private-methods',
{
loose: true
}
],[
'@babel/plugin-proposal-private-property-in-object',
{
loose: true
}
],
[
'@babel/plugin-proposal-object-rest-spread',
{
useBuiltIns: true
}
],
[
'@babel/plugin-transform-runtime',
{
helpers: false
}
],
[
'@babel/plugin-transform-regenerator',
{
async: false
}
]
].filter(Boolean)
Expand Down
2 changes: 0 additions & 2 deletions config/webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const sharedWebpackConfig = (mode) => {
chunkFilename: "[name].digested.js",
sourceMapFilename: "[file].map",
path: path.resolve(__dirname, '..', '..', 'app/assets/builds'),
hashFunction: "sha256",
hashDigestLength: 64,
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
Expand Down
14 changes: 0 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"dependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
"@gouvfr/dsfr": "^1.10.0",
"@hotwired/turbo-rails": "^7.2.4",
"@rails/ujs": "^6.0.3-4",
Expand All @@ -15,25 +13,13 @@
"devDependencies": {
"@babel/core": "^7.24.3",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-destructuring": "^7.24.1",
"@babel/plugin-transform-regenerator": "^7.24.1",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"babel-loader": "^9.1.3",
"babel-plugin-macros": "^3.1.0",
"eslint": "^7.14.0",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^3.11.0"
},
"babel": {
"presets": [
"@babel/preset-env"
]
},
"scripts": {
"lint:js": "eslint ./app/front/javascripts ./app/assets/javascripts ./config/webpack",
"dev": "webpack serve --config ./config/webpack/webpack.config.js --mode development --progress",
Expand Down
Loading

0 comments on commit 3ef3a0f

Please sign in to comment.