You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the example tests have no defined ECMAScript / browser target so if you attempt to run them on a device running WPE 2.28 (for instance) errors like the following appear:
SyntaxError: Unexpected token '?'
SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list.
We need to define a target of ES2019 which is known to be supported by WPE 2.28.
In addition we need an easier way to run the production build of the examples. The dev build (via npm start) does not properly support the setting of a target. See this Vite issue and comment.
Proposal is to create an npm run prod command in the root that:
Builds the library
Builds the production version of the examples vite build
Runs vite preview
The text was updated successfully, but these errors were encountered:
- Fixes remaining issues when trying to run the Renderer on WPE 2.28 browser and possibly lower.
- Tested on a production XG2v2 device.
- For an application using the Renderer to work on this browser, its build target MUST be set to ES2019 or lower.
- To run the Renderer Example Tests on legacy browsers, you must build/run the production version of the tests.
- Fixes#43, #44, #45
- Added `npm run prod` command to run the Example Tests in production mode (required to run the tests on legacy browsers)
Currently the example tests have no defined ECMAScript / browser target so if you attempt to run them on a device running WPE 2.28 (for instance) errors like the following appear:
We need to define a target of ES2019 which is known to be supported by WPE 2.28.
In addition we need an easier way to run the production build of the examples. The dev build (via
npm start
) does not properly support the setting of a target. See this Vite issue and comment.Proposal is to create an
npm run prod
command in the root that:vite build
vite preview
The text was updated successfully, but these errors were encountered: