Make `ssr.noExternal` shallow
See original GitHub issueDescription
Current behavior in v2: when an SSR dependency some-library
is noExternal
, then Vite will as well noExternal
all some-library
’s dependencies.
Current behavior in v3 (beta): slightly better because it only noExternal
dependencies of some-libraries
that cannot be resolved. (Correct me if I’m wrong.)
Suggested solution
Externalize all some-library
’s dependencies. I.e. only make some-library
noExternal
.
Priority
Low. (Because AFAICT this doesn’t cause the same problems than noExternalize
too many SSR user dependencies.)
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
SSR Options - Vite
Force externalize dependencies for SSR. ssr.noExternal #. Type: string | RegExp | (string | RegExp)[] | true; Related: SSR Externals.
Read more >The Structure of Scientific Revolutions
That choice, however, makes it difficult to see scientific development as a process of ... are no external standards to permit a judgment...
Read more >US7990803B2 - Deployment and retrieval method for shallow water ...
The streamers are made to float near the water's surface. The same or other similar ... The focus of the present invention is...
Read more >NI 43-101 Technical Report for the Seabee Gold Operation ...
The material factors or assumptions that SSR Mining identified and were applied by SSR. Mining in drawing the conclusions or making ...
Read more >TASK 600 – HIPPS FLOWLINE VERSUS RISER BURST IN ...
The de facto result of these codes is that, in shallow and moderate water depth ... This is not the case at the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just tried and it does seem to be as I described. (The VikePress dependency
tweemoji
is living indist/
.)Yes exactly, see my previous reply.
I see, that makes sense.
Vite only needs to resolve
twemoji
If it occurs somewhere in the code. If it occurs somewhere in the code then it’s not adevDependency
to start with.So I still think a lock file works (as long as the package manager produces a
node_modules
file structure that is stable given a specific lock file).