12 lines
259 B
JavaScript
12 lines
259 B
JavaScript
import { VERSION } from 'svelte/compiler';
|
|
|
|
/**
|
|
* @type {boolean}
|
|
*/
|
|
export const isSvelte5 = VERSION.startsWith('5.');
|
|
|
|
/**
|
|
* @type {boolean}
|
|
*/
|
|
export const isSvelte5WithHMRSupport =
|
|
VERSION.startsWith('5.0.0-next.') && Number(VERSION.slice(11)) > 96;
|