2022-04-06 05:54:27 +05:30
|
|
|
import * as hydrogenViewSdk from "hydrogen-view-sdk";
|
|
|
|
import downloadSandboxPath from 'hydrogen-view-sdk/download-sandbox.html?url';
|
|
|
|
import workerPath from 'hydrogen-view-sdk/main.js?url';
|
|
|
|
import olmWasmPath from '@matrix-org/olm/olm.wasm?url';
|
|
|
|
import olmJsPath from '@matrix-org/olm/olm.js?url';
|
|
|
|
import olmLegacyJsPath from '@matrix-org/olm/olm_legacy.js?url';
|
|
|
|
const assetPaths = {
|
|
|
|
downloadSandbox: downloadSandboxPath,
|
|
|
|
worker: workerPath,
|
|
|
|
olm: {
|
|
|
|
wasm: olmWasmPath,
|
|
|
|
legacyBundle: olmLegacyJsPath,
|
|
|
|
wasmBundle: olmJsPath
|
|
|
|
}
|
|
|
|
};
|
2022-06-01 02:00:56 +05:30
|
|
|
import "hydrogen-view-sdk/assets/theme-element-light.css";
|
2022-04-06 05:54:27 +05:30
|
|
|
|
|
|
|
console.log('hydrogenViewSdk', hydrogenViewSdk);
|
|
|
|
console.log('assetPaths', assetPaths);
|
|
|
|
|
|
|
|
console.log('Entry ESM works ✅');
|