diff --git a/webpack.config.js b/webpack.config.js index 83c369c..7a27a02 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,8 +7,11 @@ module.exports = { path: path.resolve(__dirname, 'dist'), filename: 'main.js', clean: true, - library: 'CGSelect', - libraryTarget: 'umd', + library: { + name: 'CGSelect', + type: 'window', + export: 'default', + }, }, // devServer: { // open: true,