Include dist files
This commit is contained in:
13
native-sidebar/dist/esm/web.js
vendored
Normal file
13
native-sidebar/dist/esm/web.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { WebPlugin } from '@capacitor/core';
|
||||
|
||||
// No-op web implementation so the plugin import resolves in the browser build.
|
||||
// The drawer is iOS-native only; on web these methods are never the active path
|
||||
// but must exist to avoid runtime crashes.
|
||||
export class NativeSidebarWeb extends WebPlugin {
|
||||
async setData() { /* no-op on web */ }
|
||||
async setTheme() { /* no-op on web */ }
|
||||
async open() { /* no-op on web */ }
|
||||
async close() { /* no-op on web */ }
|
||||
async setEnabled() { /* no-op on web */ }
|
||||
async dismiss() { /* no-op on web */ }
|
||||
}
|
||||
Reference in New Issue
Block a user