You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hey, @pd4d10 👋 This feature is unrelated to svelte-preprocess since you can achieve what you want by calling svelte.preprocess with svelte-preprocess in some node script. However, if more people show interest in an easier way to only preprocess their components to some directory, we can create a simple CLI.
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 topackage.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.
The text was updated successfully, but these errors were encountered: