(deps: string[])
| 11 | * remoteDepsParser(['http://js.com/1.js', 'http://js.com/2.js']) // return importScripts('http://js.com/1.js, http://js.com/2.js') |
| 12 | */ |
| 13 | const remoteDepsParser = (deps: string[]) => { |
| 14 | if (deps.length === 0) return '' |
| 15 | |
| 16 | const depsString = (deps.map(dep => `${dep}`)).toString() |
| 17 | return `importScripts('${depsString}')` |
| 18 | } |
| 19 | |
| 20 | export default remoteDepsParser |
no outgoing calls
no test coverage detected