Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named export createSagaMiddleware added to @redux-saga/core #2399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krutoo
Copy link

@krutoo krutoo commented Oct 26, 2023

  • named export createSagaMiddleware added to @redux-saga/core

According to #2396

Q A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? Yes
Tests Added + Pass? Yes
Any Dependency Changes?

- named export `createSagaMiddleware` added to `@redux-saga/core`
@changeset-bot
Copy link

changeset-bot bot commented Oct 26, 2023

⚠️ No Changeset found

Latest commit: e34339e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Andarist
Copy link
Member

I'd like to review the upstream issue first - before landing this - because I think this should not be necessary and I want to know what's happening. I'll try to take a look at this some time next week - but feel free to ping me if I forget.

@krutoo
Copy link
Author

krutoo commented Jan 13, 2024

@Andarist there is some new details about the problem

webpack/webpack#17743 (comment)

@Andarist
Copy link
Member

The resolution I'd like to take here is to migrate our build setup to https://github.com/preconstruct/preconstruct/ . I have part of the work done on some old branch but never got to finishing it. I believe that would resolve the issue since it would output dist files in a way that they would be compatible with a wide range of tools

@krutoo
Copy link
Author

krutoo commented Jan 15, 2024

The resolution I'd like to take here is to migrate our build setup to https://github.com/preconstruct/preconstruct/ . I have part of the work done on some old branch but never got to finishing it. I believe that would resolve the issue since it would output dist files in a way that they would be compatible with a wide range of tools

@Andarist thanks a lot, but can you also add named export for createSagaMiddleware?

@cristian-eriomenco
Copy link

Can we take babysteps and merge this PR first? Its causing quite a bit of headache on rollup, side of things:

import createSagaMiddleware, { SagaMiddleware } from 'redux-saga';
...
const sagaMiddleware = createSagaMiddleware();

for cjs gets translated into:

var createSagaMiddleware = require('redux-saga');
...
const sagaMiddleware = createSagaMiddleware();

which lacks the .default()

A named export would be very handy, expecially with the VSCode's auto-import plugins which don't work with default exports.

@krutoo
Copy link
Author

krutoo commented Apr 9, 2024

@cristian-eriomenco I would also really like to add named exports, it is convenient and will help solve build problems in our case

@shaunvdberg
Copy link

Hey @krutoo @Andarist

Any update on the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants