polyfill-qml

Polyfills for QML JavaScript host environment

Usage no npm install needed!

<script type="module">
  import polyfillQml from 'https://cdn.skypack.dev/polyfill-qml';
</script>

README

polyfill-qml

Minimal required polyfill library for QML JavaScript host environment.

Install

With npm:

npm install polyfill-qml --save-dev

Usage

// core qml polyfills (setTimeout/clearTimeout/etc, Object.setPrototypeOf, Function.prototype.toString fix)
import 'polyfill-qml';

// or per library
import { WebSocket } from 'polyfill-qml/stage/es5/websocket';

// combine with other polyfill libraries, e.g.
import 'core-js/features/array/find-index';