Bug 1824490 - Use the end page value rather than the start page value of the previous...
[gecko.git] / browser / components / pocket / webpack.config.js
blobd5323bcea5939577fef9dedc6c8ec37e61f9d34c
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /* eslint-env node */
6 module.exports = {
7   mode: "production",
8   entry: {
9     main: "./content/panels/js/main.js",
10   },
11   output: {
12     filename: "[name].bundle.js",
13     path: `${__dirname}/content/panels/js/`,
14   },
15   module: {
16     rules: [
17       {
18         test: /\.jsx?$/,
19         exclude: /node_modules/,
20         loader: "babel-loader",
21         options: {
22           presets: ["@babel/preset-react"],
23         },
24       },
25     ],
26   },
27   resolve: {
28     extensions: [".js", ".jsx"],
29   },
30   optimization: {
31     minimize: false,
32     splitChunks: {
33       cacheGroups: {
34         vendor: {
35           test: /[\\/]node_modules[\\/](react|react-dom|scheduler|object-assign)[\\/]/,
36           name: "vendor",
37           chunks: "all",
38         },
39       },
40     },
41   },