svelte-native-preprocessor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Svelte Native Preprocessor

A pre processor for Svelte-Native.

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

  • [x] 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.

Package Sidebar

Install

npm i svelte-native-preprocessor

Weekly Downloads

52

Version

1.0.0

License

MIT

Unpacked Size

1.41 MB

Total Files

6

Last publish

Collaborators

  • halfnelson