Closed dan-cooke closed 8 months ago
Latest commit: 2a59f03c4e3deabbdb7af28d8641479565b990e4
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Motivation
Exporting both the client and server code from a single package has never sat well with me, at the start I got by releasing a single package:
remix-sse
for server code andremix-sse/client
for client code.This works fine if you are trasnpiling CommonJS imports, but at some point recently
create-remix
has started every project withtype: "module"
(ES Modules).So this made our import paths quite ugly
remix-sse/client/index.js
- because ES modules have 2 restrictionsNot to mention this uglier syntax was less discoverable now by language servers.
Solution
The package will now be split up into 2 packages
@remix-sse/client
@remix-sse/server