From f4ca1907085e9ff0a92bff94b6eddc1a050cbc8d Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Mon, 23 Mar 2020 09:59:31 +0100 Subject: [PATCH] feat: Add support for server side rendering --- webpack.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index fe685ea..539f3eb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,8 +30,9 @@ const config = { output: { filename: "index.js", path: path.resolve(__dirname, "dist"), - library: 'useRedux', - libraryTarget: 'umd' + library: 'reactAnimeJs', + libraryTarget: 'umd', + globalObject: 'this' }, plugins: [ new CleanWebpackPlugin() @@ -43,4 +44,4 @@ if (process.env.ANALYSE === 'true') { config.plugins.push(new BundleAnalyzerPlugin()); } -module.exports = config; \ No newline at end of file +module.exports = config;