-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
svelte-kit sync outputs "If bundling, conditions should include development or production...." #13238
Comments
I figured out I can set the NODE_ENV environment variable before running "package": "set NODE_ENV=production && svelte-kit sync && svelte-package && publint", but that will either work in dev/windows or ci/prod/linux. At least I don't know of a common way to specify environment variable values that will work for both platforms. |
Related to benmccann/esm-env#13 . This happens whenever Perhaps @benmccann can shed some light on this warning and the correct action here (do we need to change SvelteKit, the create-svelte template, etc.) |
It's If you bundle an app with Vite or Rollup you won't see that message. But since the CLI is unbundled, |
Describe the bug
The following message is printed (multiple times if using a monorepo):
I've read the printed link several times, but I can't figure out what it is telling me I need to do (at least anything I've done has not removed the message) - in any case,
sv
really ought to create code that doesn't produce warnings ;-)Reproduction
Normally you get this when running
pnpm build
(orturbo build
in my case) in CI, but you can very simply reproduce it like so:A repo with the above is available at: https://github.com/thebjorn/sk-sync-bug
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: