@@ -41,7 +41,7 @@ module.exports = { generate }
4141
4242// runtime code
4343function main ( composition ) {
44- const openwhisk = require ( 'openwhisk' )
44+ const openwhisk = require ( /* webpackIgnore: true */ 'openwhisk' )
4545 let wsk
4646 let db
4747 const expiration = 86400 // expire redis key after a day
@@ -50,11 +50,11 @@ function main (composition) {
5050 function done ( id ) { return `composer/join/${ id } ` }
5151
5252 function createRedisClient ( p ) {
53- const client = require ( 'redis' ) . createClient ( p . s . redis . uri , p . s . redis . ca ? { tls : { ca : Buffer . from ( p . s . redis . ca , 'base64' ) . toString ( 'binary' ) } } : { } )
53+ const client = require ( /* webpackIgnore: true */ 'redis' ) . createClient ( p . s . redis . uri , p . s . redis . ca ? { tls : { ca : Buffer . from ( p . s . redis . ca , 'base64' ) . toString ( 'binary' ) } } : { } )
5454 const noop = ( ) => { }
5555 let handler = noop
5656 client . on ( 'error' , error => handler ( error ) )
57- require ( 'redis-commands' ) . list . forEach ( f => {
57+ require ( /* webpackIgnore: true */ 'redis-commands' ) . list . forEach ( f => {
5858 client [ `${ f } Async` ] = function ( ) {
5959 let failed = false
6060 return new Promise ( ( resolve , reject ) => {
@@ -100,7 +100,7 @@ function main (composition) {
100100 return
101101 }
102102 const stack = [ { marker : true } ] . concat ( p . s . stack )
103- const barrierId = require ( 'uuid' ) . v4 ( )
103+ const barrierId = require ( /* webpackIgnore: true */ 'uuid' ) . v4 ( )
104104 console . log ( `barrierId: ${ barrierId } , spawning: ${ array . length } ` )
105105 if ( ! wsk ) wsk = openwhisk ( p . s . openwhisk )
106106 if ( ! db ) db = createRedisClient ( p )
0 commit comments