tauri/.changes/cli-migrate-enhancemnets.md
Amr Bashir c01e87ad46
refactor(cli/migrate): use oxc kit to parse and migrate js/ts files (#10198)
* refactor(cli/migrate): use `oxc` kit to parse and migrate js/ts files

closes #10192

* fix tests

* use majic-string to perserve formatting

* more comments

* Discard changes to package.json

* Update cli-migrate-enhancemnets.md

* Update cli-migrate-enhancemnets.md

* more context

* add missing quotes, rename getcurrent

* fix change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 09:03:30 -03:00

341 B

tauri-cli @tauri-apps/cli
patch:enhance patch:enhance

Enhance tauri migrate to also migrate variables like appWindow:

import { appWindow } from '@tauri-apps/api/window'

will become:

import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'
const appWindow = getCurrentWebviewWindow()