Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ datadir*

## Vitest
__snapshots__

# Bundle stats generated with npm visualize:bundle
stats.html
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"devDependencies": {
"@types/estree": "^1.0.1",
"@types/node": "18.11.9",
"@types/rollup-plugin-visualizer": "^4.2.4",
"@types/tape": "4.13.2",
"@typescript-eslint/eslint-plugin": "5.33.1",
"@typescript-eslint/parser": "5.33.1",
Expand All @@ -43,6 +44,7 @@
"lint-staged": "13.0.3",
"lockfile-lint-api": "^5.5.1",
"prettier": "2.7.1",
"rollup-plugin-visualizer": "^5.12.0",
"sort-package-json": "1.57.0",
"tape": "5.6.0",
"tsx": "^4.6.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/block/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite.config.ts
typedoc.cjs
3 changes: 2 additions & 1 deletion packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/common": "^4.3.0",
Expand Down
19 changes: 19 additions & 0 deletions packages/block/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'vitest/config'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig({
plugins: [visualizer({ open: true, gzipSize: true })],
build: {
rollupOptions: {
// We choose safest to get worst case values
treeshake: 'safest',
},
lib: {
entry: 'src/index.ts',
name: '@ethereumjs/block',
fileName: (format) => `ethereumjs-block-bundle.${format}.js`,
// only build for es
formats: ['es'],
},
},
})
2 changes: 2 additions & 0 deletions packages/blockchain/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite.config.ts
typedoc.cjs
3 changes: 2 additions & 1 deletion packages/blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/block": "^5.2.0",
Expand Down
19 changes: 19 additions & 0 deletions packages/blockchain/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'vitest/config'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig({
plugins: [visualizer({ open: true, gzipSize: true })],
build: {
rollupOptions: {
// We choose safest to get worst case values
treeshake: 'safest',
},
lib: {
entry: 'src/index.ts',
name: '@ethereumjs/blockchain',
fileName: (format) => `ethereumjs-blockchain-bundle.${format}.js`,
// only build for es
formats: ['es'],
},
},
})
3 changes: 2 additions & 1 deletion packages/client/archive/libp2p/net/package.json.browser.deps
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"test:cli": "npm run tape -- 'test/cli/*.spec.ts'",
"test:integration": "npm run tape -- 'test/integration/**/*.spec.ts'",
"test:unit": "npm run tape -- 'test/!(integration|cli|sim)/**/*.spec.ts' 'test/*.spec.ts'",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/block": "5.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"test:cli": "npx vitest run ./test/cli/*.spec.ts",
"test:integration": "npx vitest run ./test/integration/*.spec.ts",
"test:unit": "npx vitest run test/* -c=./vitest.config.unit.ts",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/block": "5.2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/util": "^9.0.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/devp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"lint:fix": "../../config/cli/lint-fix.sh",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/common": "^4.3.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/ethash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"lint:fix": "../../config/cli/lint-fix.sh",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/block": "^5.2.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/evm/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
.cachedb
benchmarks/*.js
# Bundle stats generated with npm visualize:bundle
stats.html
2 changes: 0 additions & 2 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@
"@types/core-js": "^2.5.0",
"@types/minimist": "^1.2.2",
"@types/node-dir": "^0.0.34",
"@types/rollup-plugin-visualizer": "^4.2.4",
"benchmark": "^2.1.4",
"kzg-wasm": "^0.4.0",
"level": "^8.0.0",
"memory-level": "^1.0.0",
"minimist": "^1.2.5",
"node-dir": "^0.1.17",
"rollup-plugin-visualizer": "^5.12.0",
"solc": "^0.8.1"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/genesis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"test": "npm run test:node",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "vitest run test/*",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/common": "^4.3.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/rlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"engines": {
"node": ">=18"
Expand Down
3 changes: 2 additions & 1 deletion packages/statemanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/common": "^4.3.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/trie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/rlp": "^5.0.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/common": "^4.3.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/rlp": "^5.0.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/verkle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"test": "npm run test:node",
"test:node": "npx vitest run",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"lru-cache": "10.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"test:state:selectedForks": "echo 'Homestead TangerineWhistle SpuriousDragon Petersburg Berlin London Cancun' | xargs -n1 | xargs -I v1 npm run test:state -- --fork=v1 --verify-test-amount-alltests",
"test:state:slow": "npm run test:state -- --runSkipped=slow",
"tester": "tsx ./test/tester --stack-size=1500",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/block": "^5.2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.browser.config.mts",
"test:node": "vitest run",
"tsc": "../../config/cli/ts-compile.sh"
"tsc": "../../config/cli/ts-compile.sh",
"visualize:bundle": "npx vite build"
},
"dependencies": {
"@ethereumjs/util": "^9.0.3",
Expand Down