Unit_AI/node_modules/digest-fetch/webpack.config.js

40 lines
887 B
JavaScript
Raw Normal View History

2024-06-01 21:24:36 +01:00
require("babel-polyfill");
const webpack = require('webpack')
const path = require('path')
module.exports = {
mode: 'production',
target: "web",
context: path.join(__dirname, './digest-fetch-src.js'),
entry: [
"babel-polyfill",
path.join(__dirname, './digest-fetch-src.js')
],
output: {
uniqueName: 'digest-fetch.js',
path: path.join(__dirname, '.'),
filename: 'digest-fetch.js',
globalObject: 'this'
},
module: {
rules: [
{
test : /\.js$/,
exclude : /(node_modules|build|dist\/)/,
loader : 'babel-loader',
options : { presets: ["@babel/preset-env"] }
}
]
},
resolve: {
extensions: ['.webpack-loader.js', '.web-loader.js', '.loader.js', '.js'],
modules: [
path.join(__dirname, './node_modules'),
__dirname,
],
},
optimization: {
minimize: true,
},
};