From 780d3908567152e9a8f6680e9517e2ca4b06d614 Mon Sep 17 00:00:00 2001 From: LeuisKen Date: Tue, 13 Nov 2018 13:20:19 +0800 Subject: [PATCH] chore: fix es6 export issue. --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b314443..39a858d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,8 +17,9 @@ module.exports = { filename: production ? 'clipboard.min.js' : 'clipboard.js', path: path.resolve(__dirname, 'dist'), library: 'ClipboardJS', - libraryTarget: 'umd', - globalObject: 'this' + globalObject: 'this', + libraryExport: 'default', + libraryTarget: 'umd' }, module: { rules: [