diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index cc46f364..2dadad28 100755 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -13,6 +13,7 @@ module.exports = Merge.smart(commonConfig, { path: path.resolve(__dirname, '../dist'), library: 'frontend-component-footer', libraryTarget: 'umd', + globalObject: 'typeof self !== \'undefined\' ? self : this', }, resolve: { extensions: ['.js', '.jsx'],