This is my code

When I use the bundled code, always the second if block i.e
/// #if typeof window === 'undefined'
is always executed.
Any other way of importing files which are specific to browsers/node.
PS: I'm trying to use a single file as the SDK to be used in both browser as well as node using webpack-conditional-loader