svelte-preprocess icon indicating copy to clipboard operation
svelte-preprocess copied to clipboard

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

Results 101 svelte-preprocess issues
Sort by recently updated
recently updated
newest added

**Describe the bug** `if (filename == null) return { code: content };` in [svelte-preprocess/src/transformers/typescript.ts](https://github.com/sveltejs/svelte-preprocess/blob/main/src/transformers/typescript.ts) line 497 is the issue. **To Reproduce** Call `svelte.preprocess(code, processor)` manually without providing the third optional...

**Describe the bug** I have an issue when I'd like to use the tailwind @apply syntax within a Svelte template: ```css .my-button { @apply bg-gray-50 } ``` It works without...

**Describe the bug** A clear and concise description of what the bug is. Unable to use [TypeScript's `private` modifier](https://www.typescriptlang.org/docs/handbook/2/classes.html#private) on properties of a Class, nor the [Private class feature where...

**Is your feature request related to a problem? Please describe.** I'm attempting to use a very dynamic component-based approach in order to create an internal package for styling components (a...

enhancement

**Describe the bug** Unable to add `postcss-mixins` to a svelte project. **Logs** ``` npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected]...

**Describe the bug** When a function is used in a component props, its parameter cannot have a type. in the following code, `x={(d: Point) => d.x}` shows an error of:...

enhancement

### Problem Variables created with Pug/Svelte mixin (i.e. `+each('links as link')`) are not recognized by Typescript analyzer and cause "Cannot find name 'link'. Did you mean 'links'?" error. ![Imgur](https://i.imgur.com/kuWMAZ4.png) **Example...

bug
help wanted

**Describe the bug** When I add a PostCSS preprocessor to svletekit, below CSS code doesn't work anymore: ``` .btn:where(.btn-primary,.btn-secondary){ background-color: green; } ``` **To Reproduce** 1. Clone this: https://github.com/saadeghi/svelte-preprocess-postcss-bug 1....

Hello, I was able to configure postcss and scss to work together in my sveltekit project. ``` preprocess: { postcss: true, scss: { .... }, }, ``` and I have...

It is normal that when importing a .scss file from anywhere and it does not recognize the use of relative or absolute paths. Because in such a way if I...