fix for bundler complaining about return outside of function
Hi, while using browserify to bundle the module it complains that the return inside the first if on index.js is outside a function instead of a return, could the other code be moved inside an else? cheers!
This commit is contained in:
Родитель
f16156fa94
Коммит
ad6754c3f4
|
@ -1,20 +1,18 @@
|
|||
if process.platform != 'win32'
|
||||
return
|
||||
if process.platform == 'win32'
|
||||
require './format.oids'
|
||||
|
||||
require './format.oids'
|
||||
@der2 = require './der2'
|
||||
|
||||
@der2 = require './der2'
|
||||
nApi = !!process.versions.napi
|
||||
nApi &&= @ == require '../fallback'
|
||||
nApi &&= not @electron = do require 'is-electron'
|
||||
|
||||
nApi = !!process.versions.napi
|
||||
nApi &&= @ == require '../fallback'
|
||||
nApi &&= not @electron = do require 'is-electron'
|
||||
@each = require if @nApi = nApi
|
||||
'./each'
|
||||
else
|
||||
'./each.fallback'
|
||||
|
||||
@each = require if @nApi = nApi
|
||||
'./each'
|
||||
else
|
||||
'./each.fallback'
|
||||
@all = require './all'
|
||||
|
||||
@all = require './all'
|
||||
|
||||
require './inject'
|
||||
require './save'
|
||||
require './inject'
|
||||
require './save'
|
||||
|
|
Загрузка…
Ссылка в новой задаче