Skip to content

Commit 5381600

Browse files
kovenliaozenorocha
authored andcommitted
fix webpack umd build (#599)
1 parent 5be63e2 commit 5381600

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
@@ -17,7 +17,8 @@ module.exports = {
1717
filename: production ? 'clipboard.min.js' : 'clipboard.js',
1818
path: path.resolve(__dirname, 'dist'),
1919
library: 'ClipboardJS',
20-
libraryTarget: 'umd'
20+
libraryTarget: 'umd',
21+
globalObject: 'this'
2122
},
2223
module: {
2324
rules: [

0 commit comments

Comments
 (0)