Skip to content

Svelte-preprocess default option problems #362

@danitatt

Description

@danitatt

Hello everyone👋🏼 I really love svelte + svelte-preprocess for the ability to use the defaults option.

defaults: {
  markup: 'pug',
  script: 'coffee',
  style: 'sass'
}

But, when I use npm packages (e.g swiper/svelte), I get the error because the npm module is written in html/css/ js by default.
I get this same error when I use svelte-kit. Svelte-kit file generated without defaults and throws an error:
.svelte-kit/dev/generated/root.svelte

How can this problem be avoided? Maybe add option excludePaths? Where path node_modules & .svelte-kit exclude by default?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions