Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
This repository was archived by the owner on May 11, 2021. It is now read-only.

Make module "universal" #15

@RavenHursT

Description

@RavenHursT

Right now, in order to use this library in a "universal" or "isomorphic" app, one must either utilize dynamic require statements to import the /browser package for client-side bundling, or else, configure Webpack (or whatever bundling tool) to alias @akanass/rx-http-request to @akanass/rx-http-request/browser for the client.

I did the latter:

// webpack.config.js
{
  resolve: {
    alias: {
      '@akanass/rx-http-request': '@akanass/rx-http-request/browser'
    }
  }
}

Seems to be working, but would be nice if this just worked "out of the box" like this package: https://github.com/mcmunder/universal-rxjs-ajax

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions