0.10.0
Breaking
After updating to 0.10.0 you'll be getting a TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".svelte" error when starting vite dev.
Update the import in your svelte.config.js, change:
import preprocessReact from "svelte-preprocess-react";into
import preprocessReact from "svelte-preprocess-react/preprocessReact";This change allows importing the utilities directly from svelte-preprocess-react, for example:
import { useStore } from "svelte-preprocess-react";- Renamed
useReadabletouseStore - Removed
useWritable(a writable store already has a set function)
Features
- Using dot notation.
<react:Context.Provider {value} /> - hooks. Using hooks inside Svelte files