mastilver/module-to-cdn

Redux saga gets wrong url.

sultan99 opened this issue · 2 comments

I'm using redux-saga v1.0.2 but it resolves wrong version and gets wrong url.

image

According to the modules.json url should be `https://unpkg.com/redux-saga@1.0.2/dist/redux-saga.umd.min.js:

"redux-saga": {
    "var": "ReduxSaga",
    "versions": {
      ">= 0.4.0 <= 1.0.0-beta.1": {
        "development": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.js",
        "production": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.min.js"
      },
      "> 1.0.0-beta.1 < 1.0.0": {
        "development": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.umd.js",
        "production": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.min.umd.js"
      },
      ">= 1.0.0": {
        "development": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.umd.js",
        "production": "https://unpkg.com/redux-saga@[version]/dist/redux-saga.umd.min.js"
      }
    }
  },

but I get: https://unpkg.com/redux-saga@1.0.2/dist/redux-saga.min.js.

In my node_modules I got this:

image

I use the latest version:
image

Thank you for reporting the issue

I could reproduce the issue: https://runkit.com/embed/sal4mxtd5n0o