add bundle analyzer

# Conflicts:
#	package.json
#	webpack.bundle.config.js
#	yarn.lock
This commit is contained in:
Marin Petrunić 2020-04-09 14:53:44 +02:00 committed by morrigan
parent cc96cf5e37
commit 866ae6d333
3 changed files with 79 additions and 618 deletions

View File

@ -1,6 +1,6 @@
{
"name": "libp2p-noise",
"version": "1.0.0-rc.9",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "lib/index.js",
@ -19,8 +19,8 @@
],
"scripts": {
"prebuild": "rm -rf lib && rm -rf dist",
"bundle": "webpack --config webpack.bundle.config.js",
"build": "yarn run build:node && yarn run build:web && yarn run build:types",
"bundle": "webpack --config webpack.bundle.config.js",
"build:node": "babel --no-babelrc --config-file ./babel.config.json src --copy-files -x .ts -d dist --source-maps",
"build:web": "babel --no-babelrc --config-file ./babel.web.config.json src --copy-files -x .ts -d lib --source-maps",
"build:types": "tsc --declaration --outDir dist --emitDeclarationOnly",
@ -49,7 +49,6 @@
"@typescript-eslint/eslint-plugin": "^2.6.0",
"@typescript-eslint/parser": "^2.6.0",
"babel-loader": "^8.1.0",
"bn.js-typings": "^1.0.1",
"chai": "^4.2.0",
"eslint": "^6.6.0",
"karma": "^4.4.1",
@ -68,17 +67,21 @@
"webpack-cli": "^3.3.11"
},
"dependencies": {
"bcrypto": "5.1.0",
"@types/bn.js": "^4.11.6",
"aead-js": "^0.1.0",
"bn.js": "^5.0.0",
"buffer": "^5.4.3",
"debug": "^4.1.1",
"futoin-hkdf": "^1.3.2",
"hash.js": "^1.1.7",
"it-buffer": "^0.1.1",
"it-length-prefixed": "^3.0.0",
"it-pair": "^1.0.0",
"it-pb-rpc": "^0.1.6",
"it-pb-rpc": "^0.1.8",
"it-pipe": "^1.1.0",
"libp2p-crypto": "^0.17.1",
"peer-id": "^0.13.5",
"protobufjs": "6.8.8"
"protobufjs": "6.8.8",
"tweetnacl": "^1.0.3"
}
}

View File

@ -1,3 +1,4 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = {

681
yarn.lock

File diff suppressed because it is too large Load Diff