[v2] Add a plugin as a part of tauri app #9337
-
Hi, I found that plugins are a decent way to break down the complex app onto smaller parts and I'd like to just define one quickly inside of my tauri app. After defining and wiring up the plugin, all I see is this in my javascript console:
How can I tackle this quickly? Maybe there is a call I can make in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
inline plugins are unfortunetely not as nice to use as in v1 due to the permission changes. You will have to modify your build.rs file similar to https://github.com/tauri-apps/tauri/blob/dev/examples/api/src-tauri/build.rs#L9-L12 (it's for https://github.com/tauri-apps/tauri/blob/dev/examples/api/src-tauri/src/menu_plugin.rs) |
Beta Was this translation helpful? Give feedback.
inline plugins are unfortunetely not as nice to use as in v1 due to the permission changes. You will have to modify your build.rs file similar to https://github.com/tauri-apps/tauri/blob/dev/examples/api/src-tauri/build.rs#L9-L12 (it's for https://github.com/tauri-apps/tauri/blob/dev/examples/api/src-tauri/src/menu_plugin.rs)