From 206c1d0f23950cb5350076dee58fa2f4fa379708 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 14 Aug 2021 10:35:33 -0300 Subject: [PATCH] feat(docs): mention `@tauri-apps/api` on integration guide, closes #2235 --- docs/usage/development/integration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/usage/development/integration.md b/docs/usage/development/integration.md index 4fba6f64b..653056981 100644 --- a/docs/usage/development/integration.md +++ b/docs/usage/development/integration.md @@ -41,6 +41,16 @@ If you decide to use Tauri as a local package with npm (not yarn), you will have } ``` +### 1. Install Tauri API Package as a Dependency (optional): + +The `@tauri-apps/api` package is recommended for projects using ES modules or modern build tools such as Webpack or Vite. It is the most secure way to access the Tauri APIs. + +```bash +yarn add @tauri-apps/api +# OR +npm install @tauri-apps/api +``` + ### 2. Initialize Tauri in Your App