1.0.0 • Published 3 years ago

svelte-native-preprocessor v1.0.0

Weekly downloads
101
License
MIT
Repository
github
Last release
3 years ago

Svelte Native Preprocessor

A pre processor for Svelte-Native.

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

  • Changes bind:text="{email}" to text="{email}" on:textChanged="{e => email = e.value}"

Installation

Using nativescript-webpack >= 5.0.0 add to your svelte.config.js

const svelteNativePreprocessor = require("./svelte-native-preprocessor");

module.exports = {
    compilerOptions: {
        namespace: 'foreign'
    },
    preprocess: [svelteNativePreprocessor() /*, other preprocesser eg sveltePreprocessor() here */]
}

License

MIT.

1.0.0

3 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago