Skip to content

Commit

Permalink
Update webpack and associated loaders, node 18.12.0 is now the minimu…
Browse files Browse the repository at this point in the history
…m version required, remove webpack-merge, webpack now supports extending another configuration (#5480)
  • Loading branch information
vincentfretin authored Sep 18, 2024
1 parent 2aca98c commit b17f760
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"webvr-polyfill": "^0.10.12"
},
"devDependencies": {
"@babel/core": "^7.17.10",
"babel-loader": "^8.2.5",
"@babel/core": "^7.24.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^6.1.1",
"chai": "^4.3.6",
"chai-shallow-deep-equal": "^1.4.0",
"chalk": "^1.1.3",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-loader": "^7.1.2",
"eslint": "^8.45.0",
"eslint-config-semistandard": "^17.0.0",
"eslint-config-standard-jsx": "^11.0.0",
Expand Down Expand Up @@ -81,12 +81,11 @@
"sinon-chai": "^3.7.0",
"snazzy": "^5.0.0",
"standardx": "^7.0.0",
"style-loader": "^3.3.1",
"style-loader": "^4.0.0",
"too-wordy": "ngokevin/too-wordy",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.0",
"webpack-merge": "^5.8.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"write-good": "^1.0.8"
},
"link": true,
Expand Down
3 changes: 0 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ module.exports = {
test: /\.js$/,
use: {
loader: 'babel-loader'
// options: {
// presets: ['@babel/preset-env'],
// },
}
},
{
Expand Down
7 changes: 3 additions & 4 deletions webpack.prod.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
var path = require('path');
var merge = require('webpack-merge').merge;
var commonConfiguration = require('./webpack.config.js');
var TerserPlugin = require('terser-webpack-plugin');

module.exports = merge(commonConfiguration, {
module.exports = {
extends: ['webpack.config.js'],
output: {
library: 'AFRAME',
libraryTarget: 'umd',
Expand All @@ -28,4 +27,4 @@ module.exports = merge(commonConfiguration, {
})
]
}
});
};

0 comments on commit b17f760

Please sign in to comment.