List of Input Parameters for VSP: FE
[sdc.git] / openecomp-ui / webpack.config.js
index 8cceb9b..2e8731e 100644 (file)
@@ -92,7 +92,8 @@ module.exports = (env, argv) => {
                         ),
                         path.join(__dirname, 'node_modules/react-datepicker/'),
                         path.join(__dirname, 'node_modules/react-select/'),
-                        path.join(__dirname, 'node_modules/sdc-ui/')
+                        path.join(__dirname, 'node_modules/sdc-ui/'),
+                        path.join(__dirname, 'node_modules/react-checkbox-tree/')
                     ]
                 },
                 {
@@ -109,6 +110,10 @@ module.exports = (env, argv) => {
                         ),
                         path.join(__dirname, 'node_modules/sdc-ui/')
                     ]
+                },
+                {
+                    test: /\.worker\.js$/,
+                    use: { loader: 'worker-loader' }
                 }
             ]
         },
@@ -129,6 +134,7 @@ module.exports = (env, argv) => {
               ]
     };
     if (DEV) {
+        webpackConfig.output.globalObject = 'this';
         webpackConfig.entry['punch-outs'].push('react-hot-loader/patch');
         webpackConfig.entry['punch-outs'].push(
             'webpack-dev-server/client?http://localhost:' + devPort