|
|
@ -26,9 +26,9 @@ export function canUseWorker (selectedVersion) { |
|
|
|
const isNightly = selectedVersion.includes('nightly') |
|
|
|
const isNightly = selectedVersion.includes('nightly') |
|
|
|
return browserSupportWorker() && ( |
|
|
|
return browserSupportWorker() && ( |
|
|
|
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
|
|
|
|
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
|
|
|
|
semver.gt(version, '0.6.3') || |
|
|
|
semver.gte(version, '0.6.2') || |
|
|
|
// Only releases are wasm compiled starting with 0.3.6
|
|
|
|
// Only releases are wasm compiled starting with 0.3.6
|
|
|
|
(semver.gte(version, '0.3.6') && !isNightly) |
|
|
|
(semver.gte(version, '0.3.6') && !semver.eq(version, '0.5.17') && !isNightly) |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|