GitShow/sveltejs/svelte-preprocess
sveltejs

svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.

by sveltejs
preprocesssveltesveltejssveltekit
Star on GitHubForknpm

TypeScript

1.8k stars150 forks79 contributorsQuiet · 4mo agoSince 2018svelte-preprocess@6.0.5MIT

Meet the team

See all 79 on GitHub →
kaisermann
kaisermann481 contributions
dummdidumm
dummdidumm39 contributions
dependabot[bot]Bot
dependabot[bot]21 contributions
benmccann
benmccann15 contributions
illright
illright10 contributions
bluwy
bluwy2 contributions
pngwn
pngwn2 contributions
milahu
milahu2 contributions

Languages

View on GitHub →
TypeScript99.7%
JavaScript0.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
75
✓README✓License✓Contributing○Code of Conduct✓Issue Template✓PR Template

Recent PRs & issues

Quiet · Last activity 4mo ago
See all on GitHub →
naokihaba
Consider migrating from Volta to Vite+ or miseOpenIssue

Is your feature request related to a problem? Please describe. This repository currently uses Volta to pin the Node.js version. However, Volta is no longer actively maintained, and its maintainers recommend moving away from it in https://github.com/volta-cli/volta/issues/2080. It might be a good time to switch to an actively maintained alternative. Describe the solution you'd like I propose migrating our Node.js version management from Volta to Vite+ (). Vite+ can manage the Node.js version for the project, which means it can replace the current Volta setup without breaking reproducible development environments. If you are open to this idea, I would be happy to submit a PR for the migration. Describe alternatives you've considered mise is another good option, and it is actually what the Volta maintainers recommend. Either mise or Vite+ would be a solid step forward compared to sticking with an unmaintained tool. How important is this feature to you? Low to medium. The current Volta setup still works fine, so this is not urgent. Still, migrating now would save us from headaches down the road. Additional context** One thing to keep in mind is that Vite+ requires Node.js 20.19 or later, but this repository currently supports Node.js 18 and tests against it in CI. If we adopt Vite+ for CI, we would need to decide how to handle Node.js 18 support. A couple of options come to mind: Drop Node.js 18 from the CI matrix and test Node.js 20, 22, and 24 instead. Keep a separate CI job for Node.js 18 that runs without Vite+. Since updating Node.js version support goes a bit beyond just replacing Volta, I wanted to check what support policy the maintainers prefer before opening a PR. Full disclosure: I am on the Vite+ team, so I am naturally biased toward , but I am totally fine with whatever works best for this project.

naokihaba · 1mo ago
cooperwalbrun
Add Support for TypeScript 7OpenIssue

Sample error logs from an on a project that pins TypeScript 7+:

cooperwalbrun · 1mo ago
jycouet
chore: switch to @changesets/changelog-githubOpenPR

Switch to (its new option reproduces the same compact output).

jycouet · 2mo ago

Recent fixes

View closed PRs →
coolaj86
security: remove `postinstall` script in favor of `prepublish` scriptClosedIssue

(socket) svelte-preprocess@5.0.4 contains risks: Install scripts - Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts. Accept risks of installing these packages (y/N)? See also: @SocketDev Feature requests and proposals The script will _always_ run, even for deeply nested dependencies. The script will run when someone is running from the repo, and before . Currently the install script is used to write a message to the screen which is not actually necessary for people who have this as a dependency.

coolaj86 · 3mo ago
smithliam
Having the option to set a default lang for the `style` and `script` tagsClosedIssue

Hi I didn't find anything related to this in the docs so🤷‍♂️ Is your feature request related to a problem? Please describe. I don't want to write every single time I want to use a style tag. Describe the solution you'd like Having options like this: Describe alternatives you've considered _ How important is this feature to you? It is so annoying, I use postcss because I use Tailwindcss, so it's necessary for me to add this lang attr. These days everyone uses Tailwind, so it will be awesome for everyone to have the option... Additional context** Please and thank you.

smithliam · 3mo ago
kling90
Transformer imports not working since 6.0.4 (Rollup)ClosedIssue

Describe the bug After upgrading svelte-preprocess from 6.0.3 to 6.0.4, transformer loading fails in our Rollup build setup. The failure appears to come from a change in autoProcess.js where transformer loading switched to native dynamic import without a file extension Logs To Reproduce Reproduction project https://stackblitz.com/edit/stackblitz-starters-hn2sedt5?file=package.json StackBlitz does not show the full local error output, but is shown locally when downloading the project. When diffing the files the import logic of transformers has changed abit, it's now mixing CommonJS and ESM. https://www.diffchecker.com/CeZL35Jh/ The native async import statement needs an extenstion, if I add that on row 23 it works as expected. Expected behavior Transformer imports should resolve successfully, as in 6.0.3. Information about your project:** Your operating system: (e.x. OS X 10, Ubuntu Linux 19.10, Windows XP, etc) Ubuntu 24.04.3 LTS (Windows WSL) version 6.0.4 Whether your project uses Webpack or Rollup Rollup

kling90 · 4mo ago
Structured data for AI agents

Repository: sveltejs/svelte-preprocess. Description: A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more. Stars: 1797, Forks: 150. Primary language: TypeScript. Languages: TypeScript (99.7%), JavaScript (0.3%). License: MIT. Topics: preprocess, svelte, sveltejs, sveltekit. Latest release: svelte-preprocess@6.0.5 (4mo ago). Open PRs: 8, open issues: 79. Last activity: 4mo ago. Community health: 75%. Top contributors: kaisermann, dummdidumm, dependabot[bot], benmccann, illright, bluwy, pngwn, milahu, github-actions[bot], teemingc and others.

·@ofershap

Replace github.com with gitshow.dev