snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
24
integrations/react-webpack-4/webpack.config.js
Normal file
24
integrations/react-webpack-4/webpack.config.js
Normal file
@@ -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],
|
||||
}
|
||||
Reference in New Issue
Block a user