-
-
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
fix: revert tsconfig change, fix types #11908
Conversation
🦋 Changeset detectedLatest commit: 16b5ec0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
bb86f4c
to
8ef717f
Compare
8ef717f
to
16b5ec0
Compare
The workaround for this bug is pretty nasty. You can't extend
I'd be inclined to just fix the CSP types and see if it's still giving folks trouble to include |
I should mention also that the thing that drove #11886 was trying to upgrade a large project to Svelte 5. The project has a ton of |
If the tsconfig change is reverted, perhaps an alternative for now (until the next major version) would be to adjust the |
While that would help the Svelte config file get type checked, it doesn't seem likely to fix the issue I'm trying to address which is that you can't set |
IMO fixing the CSP rules is a good compromise. I don't have any problems with the svelte config file being type-checked, i only had problems with incorrect types. |
Still strongly in favor of reverting this for 2.0 and looking at it again in 3.0 |
The inclusion of
svelte.config.js
is a breaking change since it's type-checked now and that can break projects which did type-check without errors previouslycloses #11906
Also relaxes the report-uri types, fully qualified urls are also ok
closes #11905
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits