From adfb99e7ecd8e4ae77ae76a4e24c1e4c41520982 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 30 Dec 2020 15:57:02 +0100 Subject: [PATCH] Update conversion documentation for Node.js We now only support conversion to CommonJS, in order to support Node.js older than version 15. --- docs/LIBRARY.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/LIBRARY.md b/docs/LIBRARY.md index 63f55e8f1..3890bb20c 100644 --- a/docs/LIBRARY.md +++ b/docs/LIBRARY.md @@ -18,18 +18,14 @@ do things. ## Conversion of Modules -noVNC is written using ECMAScript 6 modules. Many of the major browsers support -these modules natively, but not all. They are also not supported by Node.js. To -use noVNC in these places the library must first be converted. +noVNC is written using ECMAScript 6 modules. This is not supported by older +versions of Node.js. To use noVNC with those older versions of Node.js the +library must first be converted. Fortunately noVNC includes a script to handle this conversion. Please follow the following steps: 1. Install Node.js 2. Run `npm install` in the noVNC directory - 3. Run `./utils/use_require.js --as ` - -Several module formats are available. Please run -`./utils/use_require.js --help` to see them all. The result of the conversion is available in the `lib/` directory.