Skip to content

Commit 77292e5

Browse files
authored
Merge pull request #1488 from zloirock/build-web-fix
2 parents 8912936 + a9cabc0 commit 77292e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

website/build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async function buildPlaygrounds(template, versions) {
227227
}
228228

229229
async function buildPlayground(template, version, versions) {
230-
const versionPath = version.path ?? version.label;
230+
const versionPath = version.branch ?? version.tag;
231231
const bundleScript = `<script nomodule src="${ config.bundlesPath }/${ versionPath }/${ config.bundleName }"></script>`;
232232
const bundleESModulesScript = `<script type="module" src="${ config.bundlesPath }/${ versionPath }/${ config.bundleNameESModules }"></script>`;
233233
const babelScript = '<script src="./babel.min.js"></script>';
@@ -275,6 +275,7 @@ async function getVersions() {
275275
return [{
276276
label: BRANCH,
277277
default: true,
278+
branch: BRANCH,
278279
}];
279280
}
280281
const versions = await readJson(config.versionsFile);

0 commit comments

Comments
 (0)