use import type and add comment to karma build

This commit is contained in:
weboko 2023-02-08 22:48:33 +01:00
parent 9a37ea69af
commit cd6b78088d
No known key found for this signature in database
4 changed files with 5 additions and 3 deletions

View File

@ -37,6 +37,8 @@ module.exports = function (config) {
webpack: {
mode: "production",
optimization: {
// minification is disabled due to an issue with missing variable
// https://github.com/waku-org/js-noise/pull/18#discussion_r1100712310
minimize: false,
},
resolve: {

View File

@ -1,5 +1,5 @@
import { DecodedMessage } from "@waku/core";
import { IDecodedMessage, IDecoder, IEncoder, IMessage, IProtoMessage } from "@waku/interfaces";
import type { IDecodedMessage, IDecoder, IEncoder, IMessage, IProtoMessage } from "@waku/interfaces";
import { WakuMessage } from "@waku/proto";
import debug from "debug";

View File

@ -1,6 +1,6 @@
import { HMACDRBG } from "@stablelib/hmac-drbg";
import { randomBytes } from "@stablelib/random";
import { IDecoder, IEncoder, IMessage } from "@waku/interfaces";
import type { IDecoder, IEncoder, IMessage } from "@waku/interfaces";
import { expect } from "chai";
import { EventEmitter } from "eventemitter3";
import { pEvent } from "p-event";

View File

@ -1,6 +1,6 @@
import { HMACDRBG } from "@stablelib/hmac-drbg";
import { randomBytes } from "@stablelib/random";
import { IDecoder, IEncoder, IMessage } from "@waku/interfaces";
import type { IDecoder, IEncoder, IMessage } from "@waku/interfaces";
import debug from "debug";
import { EventEmitter } from "eventemitter3";
import { pEvent } from "p-event";