mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
38c3774869
> Will be easier towards the future when adding more assets. Probably best to keep style.css for now for backwards compat though. > > *-- https://github.com/vector-im/hydrogen-web/pull/693#discussion_r853844282*
22 lines
736 B
TypeScript
22 lines
736 B
TypeScript
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
|
|
}
|
|
};
|
|
import "hydrogen-view-sdk/assets/theme-element-light.css";
|
|
|
|
console.log('hydrogenViewSdk', hydrogenViewSdk);
|
|
console.log('assetPaths', assetPaths);
|
|
|
|
console.log('Entry ESM works ✅');
|