mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
Add a configuration file and 'migrate' deserialize to TS
This commit is contained in:
parent
3687f1fd4a
commit
59c1a1f401
35
snowpack.config.js
Normal file
35
snowpack.config.js
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Snowpack Configuration File
|
||||||
|
// See all supported options: https://www.snowpack.dev/reference/configuration
|
||||||
|
|
||||||
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
||||||
|
module.exports = {
|
||||||
|
mount: {
|
||||||
|
"src": "/src",
|
||||||
|
"public": "/",
|
||||||
|
"lib": {url: "/lib", static: true },
|
||||||
|
/* ... */
|
||||||
|
},
|
||||||
|
exclude: [
|
||||||
|
/* Avoid scanning scripts which use dev-dependencies and pull in babel, rollup, etc. */
|
||||||
|
'**/node_modules/**/*', '**/scripts/**', '**/target/**', '**/prototypes/**'
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
/* ... */
|
||||||
|
],
|
||||||
|
packageOptions: {
|
||||||
|
/* ... */
|
||||||
|
external: [
|
||||||
|
/* Olm seems to import these but not use them. */
|
||||||
|
"path",
|
||||||
|
"crypto",
|
||||||
|
"fs",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
devOptions: {
|
||||||
|
open: "none",
|
||||||
|
/* ... */
|
||||||
|
},
|
||||||
|
buildOptions: {
|
||||||
|
/* ... */
|
||||||
|
},
|
||||||
|
};
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
import {BaseTextTile, BodyFormat} from "./BaseTextTile.js";
|
import {BaseTextTile, BodyFormat} from "./BaseTextTile.js";
|
||||||
import {parsePlainBody} from "../MessageBody.js";
|
import {parsePlainBody} from "../MessageBody.js";
|
||||||
import {parseHTMLBody} from "../deserialize.js";
|
import {parseHTMLBody} from "../deserialize.ts";
|
||||||
|
|
||||||
export class TextTile extends BaseTextTile {
|
export class TextTile extends BaseTextTile {
|
||||||
_getContentString(key) {
|
_getContentString(key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user