Skip to content

Commit c646fa1

Browse files
committed
fix bench:v8 output path
1 parent 1559d2a commit c646fa1

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/npm-debug.log
44
.DS_Store
55
/src/preact-render-to-string-tests.d.ts
6-
/benchmarks/.v8.modern.js
6+
/benchmarks/.v8.mjs

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"scripts": {
2727
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
28-
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.js && v8 --module benchmarks/.v8.modern.js",
28+
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.mjs",
2929
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",
3030
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js",
3131
"transpile": "microbundle src/index.js -f es,umd --target web --external preact",
@@ -104,16 +104,16 @@
104104
"@babel/plugin-transform-react-jsx": "^7.12.12",
105105
"@babel/preset-env": "^7.12.11",
106106
"@babel/register": "^7.12.10",
107-
"@changesets/cli": "^2.18.0",
108107
"@changesets/changelog-github": "^0.4.1",
108+
"@changesets/cli": "^2.18.0",
109109
"benchmarkjs-pretty": "^2.0.1",
110110
"chai": "^4.2.0",
111111
"copyfiles": "^2.4.1",
112112
"eslint": "^7.16.0",
113113
"eslint-config-developit": "^1.2.0",
114114
"husky": "^4.3.6",
115115
"lint-staged": "^10.5.3",
116-
"microbundle": "^0.13.0",
116+
"microbundle": "^0.15.1",
117117
"mocha": "^8.2.1",
118118
"preact": "^10.5.7",
119119
"prettier": "^2.2.1",
@@ -139,10 +139,5 @@
139139
"hooks": {
140140
"pre-commit": "lint-staged"
141141
}
142-
},
143-
"mangle": {
144-
"compress": {
145-
"reduce_funcs": false
146-
}
147142
}
148143
}

0 commit comments

Comments
 (0)