Skip to content

Commit 4573fde

Browse files
committed
Make built library more consumable in userland
1 parent faea393 commit 4573fde

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

webpack.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ ${pkg.name} - v${pkg.version}
77
Copyright (c) ${pkg.author}
88
Licensed under the ${pkg.license} License.
99
`;
10+
const fileMap = {
11+
node: 'index.js',
12+
web: 'index.browser.js',
13+
};
1014

1115
function makeConfig({ target }) {
12-
const fileMap = {
13-
node: 'index.js',
14-
web: 'index.browser.js',
15-
};
16-
1716
return {
18-
mode: 'production',
17+
mode: 'none',
1918
target,
2019
entry: path.join(__dirname, 'src/index.js'),
2120
output: {
@@ -24,6 +23,7 @@ function makeConfig({ target }) {
2423
library: {
2524
name: 'ReactCheckboxTree',
2625
type: 'umd',
26+
umdNamedDefine: true,
2727
},
2828
},
2929
resolve: {

0 commit comments

Comments
 (0)