We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8698d3 commit 4a1678eCopy full SHA for 4a1678e
packages/vm/package.json
@@ -5,8 +5,10 @@
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
7
"files": [
8
- "dist/**/*"
+ "dist",
9
+ "dist.browser"
10
],
11
+ "browser": "dist.browser/index.js",
12
"scripts": {
13
"build": "ethereumjs-config-ts-build",
14
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",
packages/vm/tsconfig.browser.json
@@ -0,0 +1,8 @@
1
+{
2
+ "extends": "@ethereumjs/config-typescript/tsconfig.browser.json",
3
+ "include": ["lib/**/*.ts"],
4
+ "compilerOptions": {
+ "outDir": "./dist.browser",
+ "resolveJsonModule": true
+ }
+}
0 commit comments