Add a configuration file and 'migrate' deserialize to TS
This commit is contained in:
parent
3687f1fd4a
commit
59c1a1f401
3 changed files with 36 additions and 1 deletions
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 {parsePlainBody} from "../MessageBody.js";
|
||||
import {parseHTMLBody} from "../deserialize.js";
|
||||
import {parseHTMLBody} from "../deserialize.ts";
|
||||
|
||||
export class TextTile extends BaseTextTile {
|
||||
_getContentString(key) {
|
||||
|
|
Reference in a new issue