Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70988

Conditionally import plugin

$
0
0

I have a custom plugin that allows me to connect to my hardware
the packaging has a bug, with IOS Appstore asking for a file I don’t have for a 3rd party lib…

anyhow, I can conditionally compile without that lib function…

BUT I cannot conditionally import the plugin
trying

if(useEstimote)
   import { EstimotePlugin as EstimoteUWBPlugin  } from 'estimoteplugin4';
else
   const EstimotePlugin = ()=>{}

error

[vite:vue] [vue/compiler-sfc] 'import' and 'export' may only appear at the top level

any magic ???

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 70988

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>