-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2588a08
commit fbe55f8
Showing
11 changed files
with
2,438 additions
and
3,371 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "react-webpack-4", | ||
"private": true, | ||
"scripts": { | ||
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.26.0", | ||
"@babel/preset-env": "^7.26.0", | ||
"@babel/preset-react": "^7.25.9", | ||
"@tanstack/react-query": "workspace:*", | ||
"@tanstack/react-query-devtools": "workspace:*", | ||
"babel-loader": "^8.3.0", | ||
"html-webpack-plugin": "^4.5.2", | ||
"react": "19.0.0-rc-4c2e457c7c-20240522", | ||
"react-dom": "19.0.0-rc-4c2e457c7c-20240522", | ||
"webpack": "^4.44.2", | ||
"webpack-cli": "^4.10.0" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^7.0.3" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
integrations/react-cra4/public/index.html → ...rations/react-webpack-4/public/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const HtmlWebPackPlugin = require('html-webpack-plugin') | ||
|
||
const htmlPlugin = new HtmlWebPackPlugin({ | ||
template: './public/index.html', | ||
filename: './index.html', | ||
}) | ||
|
||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(?:js|mjs|cjs|jsx)$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
plugins: [htmlPlugin], | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.