Skip to content

Commit 913d2d1

Browse files
authored
undo cursor change
1 parent 3339e2c commit 913d2d1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/generators/web/utils/config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ export default function createConfigSource(input) {
7676

7777
const version = `v${configVersion.version}`;
7878
const editURL = populate(config.editURL, { ...config, version });
79-
// Preserve the `{version}` placeholder in `pageURL` for buildVersionEntries.
80-
// Avoid passing the SemVer object so populate() does not replace `{version}` prematurely.
81-
const configWithoutVersion = { ...config };
82-
delete configWithoutVersion.version;
83-
const pageURL = populate(config.pageURL, configWithoutVersion);
79+
const pageURL = populate(config.pageURL, config);
8480

8581
const exports = {
8682
...Object.fromEntries(

0 commit comments

Comments
 (0)