Skip to content

Commit

Permalink
Updated react-scripts to version 5 (webpack 5), updated React from 16…
Browse files Browse the repository at this point in the history
… to 18, added bootstrap icons, updated changelogs, updated yarn.lock
  • Loading branch information
Anton Mogdalov committed Sep 14, 2024
1 parent 486d5a5 commit 5de91dd
Show file tree
Hide file tree
Showing 20 changed files with 15,650 additions and 19,785 deletions.
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [1.5.0] - 14/09/2023

- Added react-scripts version 5 along with webpack version 5 support.
- Added support for node.js version > 20
- Updated React.js from 16 to 18 version
- Removed old webpack configs.
- Removed unnecessary dev dependencies.
- Replaced deprecated glyphicons-halflings icon library with bootstrap-icons

## [1.4.2] - 22/12/2023

- Updated dependencies
Expand Down
31 changes: 31 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const webpack = require("webpack")
const path = require("path")
module.exports = function override(config) {
const fallback = config.resolve.fallback || {}
Object.assign(fallback, {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
assert: require.resolve("assert"),
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
os: require.resolve("os-browserify"),
url: require.resolve("url"),
vm: require.resolve("vm-browserify"),
})
config.resolve.fallback = fallback
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
])
const modules = config.resolve.modules
config.resolve.modules = [...modules, path.resolve(__dirname, "src")]
config.module.rules.push({
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
})
return config
}
93 changes: 0 additions & 93 deletions config/env.js

This file was deleted.

14 changes: 0 additions & 14 deletions config/jest/cssTransform.js

This file was deleted.

40 changes: 0 additions & 40 deletions config/jest/fileTransform.js

This file was deleted.

141 changes: 0 additions & 141 deletions config/modules.js

This file was deleted.

Loading

0 comments on commit 5de91dd

Please sign in to comment.