Skip to content

0.10.0

Compare
Choose a tag to compare
@bfanger bfanger released this 18 Sep 16:30
· 69 commits to main since this release

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 useReadable to useStore
  • Removed useWritable (a writable store already has a set function)

Features

  • Using dot notation. <react:Context.Provider {value} />
  • hooks. Using hooks inside Svelte files