From 9e2681ae7b8a7bc6eea606c79f26638c6f24f780 Mon Sep 17 00:00:00 2001 From: Frederic R Date: Sat, 15 Jul 2023 16:14:38 +0100 Subject: [PATCH] fix: #2206 Element type is invalid allow react-slick to be bundled into a library --- webpack.config.dist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.dist.js b/webpack.config.dist.js index d5416d6f8..a7bca7c83 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -9,7 +9,8 @@ module.exports = { output: { library: "Slider", libraryTarget: "umd", - path: path.join(__dirname, "dist") + path: path.join(__dirname, "dist"), + umdNamedDefine: true }, module: {