* tests: add various e2e tests for MPR and measurements wip add cypress config feat: add mode and extension for testing add hp applied through search params add MPR tests apply review comments add more e2e tests update yarn lock * fix unit tests failing
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/**
|
|
* Entry point for development and production PWA builds.
|
|
*/
|
|
import 'regenerator-runtime/runtime';
|
|
import App from './App';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
/**
|
|
* EXTENSIONS AND MODES
|
|
* =================
|
|
* pluginImports.js is dynamically generated from extension and mode
|
|
* configuration at build time.
|
|
*
|
|
* pluginImports.js imports all of the modes and extensions and adds them
|
|
* to the window for processing.
|
|
*/
|
|
import loadDynamicImports, { loadRuntimeImports } from './pluginImports.js';
|
|
|
|
loadDynamicImports().then(() => {
|
|
loadRuntimeImports(window.config).then(() => {
|
|
/**
|
|
* Combine our appConfiguration with installed extensions and modes.
|
|
* In the future appConfiguration may contain modes added at runtime.
|
|
* */
|
|
const appProps = {
|
|
config: window ? window.config : {},
|
|
defaultExtensions: window.extensions,
|
|
defaultModes: window.modes,
|
|
};
|
|
|
|
/** Create App */
|
|
const app = React.createElement(App, appProps, null);
|
|
/** Render */
|
|
ReactDOM.render(app, document.getElementById('root'));
|
|
});
|
|
});
|