1
0
Fork 0
firefox/browser/components/pocket/webpack.config.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

41 lines
941 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
module.exports = {
mode: "production",
entry: {
main: "./content/panels/js/main.mjs",
},
output: {
filename: "[name].bundle.js",
path: `${__dirname}/content/panels/js/`,
},
module: {
rules: [
{
test: /\.jsx$/,
exclude: /node_modules/,
loader: "babel-loader",
options: {
presets: ["@babel/preset-react"],
},
},
],
},
resolve: {
extensions: [".mjs", ".jsx"],
},
optimization: {
minimize: false,
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/](react|react-dom|scheduler|object-assign)[\\/]/,
name: "vendor",
chunks: "all",
},
},
},
},
};