rsnext/packages
Datner 9f647f311f
add effect packages into the optimized-by-default list (#65465)
### What?

Adding packages from the Effect ecosystem to the list of
optimized-by-default imports

### Why?

Effect usage includes very liberal use of `import * as Module from
"effect/Module"` and `import { Module } from "effect"`. This is usually
trees-shaken but in nextjs we must declare it to be optimized to be have
this way. To provide a better experience to users I added all the
packages in the ecosystem to the list that are possibly relevant. I
don't expect all of them to get in, but the proposal should start from
the full set of possible candidates. Not included are `/cli`,
`/printer`, `/printer-ansi`, and `/vitest`.

At the very least `effect` and `/schema` should be added for their
prevalence, but even if there is hesitance I recommend adding
`/platform` and `/platform-node` since it's natural for effect usage to
grow into benefitting from these quickly enough.

Related issue in the effect repo 
https://github.com/Effect-TS/effect/issues/2701

cited source for taken action:
[the vercel
blog](https://vercel.com/blog/how-we-optimized-package-imports-in-next-js)

### How?

Adding strings to a set

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-05-16 19:08:46 +00:00
..
create-next-app v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
eslint-config-next v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
eslint-plugin-next v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
font v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next add effect packages into the optimized-by-default list (#65465) 2024-05-16 19:08:46 +00:00
next-bundle-analyzer v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-codemod v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-env v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-mdx v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-plugin-storybook v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-polyfill-module v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-polyfill-nomodule v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
next-swc v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
react-refresh-utils v14.3.0-canary.65 2024-05-16 18:15:02 +00:00
third-parties v14.3.0-canary.65 2024-05-16 18:15:02 +00:00