mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-02 13:43:08 +00:00
use import type and add comment to karma build
This commit is contained in:
parent
9a37ea69af
commit
cd6b78088d
@ -37,6 +37,8 @@ module.exports = function (config) {
|
|||||||
webpack: {
|
webpack: {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
optimization: {
|
optimization: {
|
||||||
|
// minification is disabled due to an issue with missing variable
|
||||||
|
// https://github.com/waku-org/js-noise/pull/18#discussion_r1100712310
|
||||||
minimize: false,
|
minimize: false,
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { DecodedMessage } from "@waku/core";
|
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 { WakuMessage } from "@waku/proto";
|
||||||
import debug from "debug";
|
import debug from "debug";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { HMACDRBG } from "@stablelib/hmac-drbg";
|
import { HMACDRBG } from "@stablelib/hmac-drbg";
|
||||||
import { randomBytes } from "@stablelib/random";
|
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 { expect } from "chai";
|
||||||
import { EventEmitter } from "eventemitter3";
|
import { EventEmitter } from "eventemitter3";
|
||||||
import { pEvent } from "p-event";
|
import { pEvent } from "p-event";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { HMACDRBG } from "@stablelib/hmac-drbg";
|
import { HMACDRBG } from "@stablelib/hmac-drbg";
|
||||||
import { randomBytes } from "@stablelib/random";
|
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 debug from "debug";
|
||||||
import { EventEmitter } from "eventemitter3";
|
import { EventEmitter } from "eventemitter3";
|
||||||
import { pEvent } from "p-event";
|
import { pEvent } from "p-event";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user