Skip to content

Commit 4a1678e

Browse files
committed
vm: added browser build
1 parent c8698d3 commit 4a1678e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/vm/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"files": [
8-
"dist/**/*"
8+
"dist",
9+
"dist.browser"
910
],
11+
"browser": "dist.browser/index.js",
1012
"scripts": {
1113
"build": "ethereumjs-config-ts-build",
1214
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",

packages/vm/tsconfig.browser.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@ethereumjs/config-typescript/tsconfig.browser.json",
3+
"include": ["lib/**/*.ts"],
4+
"compilerOptions": {
5+
"outDir": "./dist.browser",
6+
"resolveJsonModule": true
7+
}
8+
}

0 commit comments

Comments
 (0)