@@ -41,7 +41,7 @@ module.exports = { generate }
41
41
42
42
// runtime code
43
43
function main ( composition ) {
44
- const openwhisk = require ( 'openwhisk' )
44
+ const openwhisk = require ( /* webpackIgnore: true */ 'openwhisk' )
45
45
let wsk
46
46
let db
47
47
const expiration = 86400 // expire redis key after a day
@@ -50,11 +50,11 @@ function main (composition) {
50
50
function done ( id ) { return `composer/join/${ id } ` }
51
51
52
52
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' ) } } : { } )
54
54
const noop = ( ) => { }
55
55
let handler = noop
56
56
client . on ( 'error' , error => handler ( error ) )
57
- require ( 'redis-commands' ) . list . forEach ( f => {
57
+ require ( /* webpackIgnore: true */ 'redis-commands' ) . list . forEach ( f => {
58
58
client [ `${ f } Async` ] = function ( ) {
59
59
let failed = false
60
60
return new Promise ( ( resolve , reject ) => {
@@ -100,7 +100,7 @@ function main (composition) {
100
100
return
101
101
}
102
102
const stack = [ { marker : true } ] . concat ( p . s . stack )
103
- const barrierId = require ( 'uuid' ) . v4 ( )
103
+ const barrierId = require ( /* webpackIgnore: true */ 'uuid' ) . v4 ( )
104
104
console . log ( `barrierId: ${ barrierId } , spawning: ${ array . length } ` )
105
105
if ( ! wsk ) wsk = openwhisk ( p . s . openwhisk )
106
106
if ( ! db ) db = createRedisClient ( p )
0 commit comments