QML's JS engine does not support ES module export/import syntax. Replace bare export with a CommonJS guard that only runs under Node.js, so the plugin loads in QML while tests still work. |
||
|---|---|---|
| .. | ||
| lib.js | ||
| plugin.json | ||
| TailscaleWidget.qml | ||
QML's JS engine does not support ES module export/import syntax. Replace bare export with a CommonJS guard that only runs under Node.js, so the plugin loads in QML while tests still work. |
||
|---|---|---|
| .. | ||
| lib.js | ||
| plugin.json | ||
| TailscaleWidget.qml | ||