We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d85f8 commit 8255c01Copy full SHA for 8255c01
webpack.config.js
@@ -3,8 +3,6 @@
3
*/
4
const path = require("path");
5
6
-const isDev = process.env.NODE_ENV === 'development';
7
-
8
module.exports = {
9
mode: process.env.NODE_ENV || "production",
10
entry: {
@@ -13,15 +11,13 @@ module.exports = {
13
11
output: {
14
12
path: path.resolve(__dirname, "dist"),
15
filename: "[name].js",
16
- libraryTarget: isDev ? "commonjs2": 'umd',
+ libraryTarget: "commonjs2",
17
library: "Web3Modal",
18
- umdNamedDefine: true,
19
- globalObject: "this"
20
},
21
- externals: isDev ? {
+ externals: {
22
'react': 'react',
23
'react-dom': 'react-dom'
24
- } : {},
+ },
25
resolve: {
26
extensions: [".ts", ".tsx", ".js"]
27
0 commit comments