File size: 338 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { VERSION } from 'svelte/compiler';

/**
 * @type {boolean}
 */
export const isSvelte4 = VERSION.startsWith('4.');

/**
 * @type {boolean}
 */
export const isSvelte5 = VERSION.startsWith('5.');

/**
 * @type {boolean}
 */
export const isSvelte5WithHMRSupport =
	VERSION.startsWith('5.0.0-next.') && Number(VERSION.slice(11)) > 96;