-
-
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] don't strip type="application/.." tags #6887
Conversation
🦋 Changeset detectedLatest commit: 1cceda8 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 |
This approach will work in 99% of scenarios but it makes me a little nervous — what we should really be doing is stripping |
For Svelte 4 I'd like to rework the preprocessing by having a parser instead of a Regexp (that parser would make some assumptions about the form of the unpreprocessed code, balanced brackets etc) which would also help to preprocess mustache tags inside the markup so people could use TypeScript in there - but until we have that, the best we can do is string-checks. |
Ah, got it. In that case the good-enough solution is good enough |
Hi, This seems to have broken our packaging for our project. It looks like there is no check on whether s4 contains a value before doing a startsWith in package/src/utils.js:55:34. When we run
Looking at #6862 our project does nothing with application/ and I can't see any debug info as to what file in our project is making this check fail. It is managing to process a considerable amount of the project before it fails though. |
Fixes #6862
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. All changesets should bepatch
until SvelteKit 1.0