npm i --save svelte-native-preprocessor
- Version: 1.0.0
- GitHub: https://github.com/halfnelson/svelte-native-preprocessor
- NPM: https://www.npmjs.com/package/svelte-native-preprocessor
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
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}"
totext="{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.