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

build: externalize non-esm deps in ssr build #10848

Merged
merged 4 commits into from
Nov 22, 2024
Merged

Conversation

benelan
Copy link
Member

@benelan benelan commented Nov 22, 2024

Summary

We need to set Vite's ssr.noExternal option to the same non-ESM dependencies we add to Lumina's bundleIn option.

This also removes calcite-component's test:prerender NPM script, which does a Vite SSR build and is no longer necessary after migrating to Lumina.

ref: https://vite.dev/guide/ssr#ssr-externals

@github-actions github-actions bot added the chore Issues with changes that don't modify src or test files. label Nov 22, 2024
@benelan benelan added the skip visual snapshots Pull requests that do not need visual regression testing. label Nov 22, 2024
@benelan benelan merged commit 05a4386 into dev Nov 22, 2024
12 checks passed
@benelan benelan deleted the benelan/external-deps branch November 22, 2024 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues with changes that don't modify src or test files. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants