Skip to main content

tauri

See the source

Sets up the environment for Tauri desktop applications. Includes browser globals plus Tauri-specific APIs.

Globals included

Everything from the web config, plus:

  • __TAURI__
  • __TAURI_INTERNALS__

Default file patterns

["src/**/*.{js,mjs,cjs}"]

Options

uglify({
with: ["tauri"],
options: {
tauri: {
files: ["src/**/*.{js,jsx,ts,tsx}"],
},
},
})