Skip to content

Commit 2ad2d7a

Browse files
authored
library target is set 'umd' to make build available on both browsers and Node.js (#109)
1 parent 0959923 commit 2ad2d7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = {
88
output: {
99
filename: 'index.min.js',
1010
library: 'axios-auth-refresh',
11-
libraryTarget: 'commonjs2'
11+
libraryTarget: 'umd',
12+
globalObject: 'this'
1213
},
1314
resolve: {
1415
extensions: [".ts", ".tsx", ".js"]

0 commit comments

Comments
 (0)