We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9625890 commit 262a388Copy full SHA for 262a388
docs/repl/stores/rollup.ts
@@ -37,8 +37,12 @@ function getRollupJsUrl({ type, version }: RollupRequest) {
37
function getRollupWasmFileUrl({ type, version }: RollupRequest) {
38
if (type === 'pr') {
39
return getFullUrlFromAWS(version, ROLLUP_WASM_FILE);
40
- } else if (type === 'version' && version && isRollupVersionAtLeast(version, 4, 0)) {
41
- return getFullUrlFromUnpkg(version, ROLLUP_WASM_FILE);
+ } else if (type === 'version') {
+ if (!version) {
42
+ return getFullUrlFromUnpkg(undefined, ROLLUP_WASM_FILE);
43
+ } else if (isRollupVersionAtLeast(version, 4, 0)) {
44
+ return getFullUrlFromUnpkg(version, ROLLUP_WASM_FILE);
45
+ }
46
}
47
48
0 commit comments