Skip to content

Do preprocess without bundling #255

Closed
@pd4d10

Description

@pd4d10

Is your feature request related to a problem? Please describe.

When using svelte to develop a library, it is recommended to ship source code (*.svelte) to npm and add a svelte field to package.json(from this document). If this library is used by someone, the rollup plugin would take these source code and recompile them.

The problem is, if some preprocessors are used in the library development (for example TypeScript), all users of this lib have to add these preprocessors to their app/library project, because rollup plugin would take the source code and recompile them.

Describe the solution you'd like

Provide a way to do preprocess without bundling. Take TypeScript as an example, input is <script lang="ts">/* TS code */</script> and output is <script>/* JS code */</script>

How important is this feature to you?

We encountered this problem when developing ByteMD, which is a hackable Markdown editor built with Svelte.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions