|
|
@ -12,8 +12,8 @@ const content = fs.readFileSync(filePath, 'utf8') |
|
|
|
|
|
|
|
|
|
|
|
/** Replace `createWebHistory` with `createWebHashHistory` */ |
|
|
|
/** Replace `createWebHistory` with `createWebHashHistory` */ |
|
|
|
const updatedContent = content.replace( |
|
|
|
const updatedContent = content.replace( |
|
|
|
/createWebHistory(\s*,\s*)createMemoryHistory/, |
|
|
|
/createRouter(\s*,\s*)createWebHistory(\s*,\s*)createMemoryHistory/, |
|
|
|
`createWebHashHistory as createWebHistory$1createMemoryHistory`, |
|
|
|
`createRouter$1createWebHashHistory as createWebHistory$2createMemoryHistory`, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
/** Update file content with updated code */ |
|
|
|
/** Update file content with updated code */ |
|
|
|