Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Possible need for a preprocessor #9

@shirakaba

Description

@shirakaba

See https://github.com/halfnelson/svelte-native-preprocessor:

It performs the following transforms to provide a better developer experience when using Svelte-Native:

  • Adds <svelte:options namespace="xmlns" /> to the component, ensuring the generated code is compatible with svelte-native
  • Changes bind:text="{email}" to text="{email}" on:textChanged="{e => email = e.value}"

We at least need the namespace aspect, as if PR sveltejs/svelte#5652 lands, we'll require such preprocessing in order to close https://github.com/shirakaba/svelte-nodegui/issues/9.

I'm unsure whether we'll need it for bind:text; I haven't yet tried that feature (and indeed may not be able to if event listener names are forced to lower case – though I'm not sure of the casing used by NodeGUI yet).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions