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 faea393 commit 4573fdeCopy full SHA for 4573fde
webpack.config.js
@@ -7,15 +7,14 @@ ${pkg.name} - v${pkg.version}
7
Copyright (c) ${pkg.author}
8
Licensed under the ${pkg.license} License.
9
`;
10
+const fileMap = {
11
+ node: 'index.js',
12
+ web: 'index.browser.js',
13
+};
14
15
function makeConfig({ target }) {
- const fileMap = {
- node: 'index.js',
- web: 'index.browser.js',
- };
16
-
17
return {
18
- mode: 'production',
+ mode: 'none',
19
target,
20
entry: path.join(__dirname, 'src/index.js'),
21
output: {
@@ -24,6 +23,7 @@ function makeConfig({ target }) {
24
23
library: {
25
name: 'ReactCheckboxTree',
26
type: 'umd',
+ umdNamedDefine: true,
27
},
28
29
resolve: {
0 commit comments