Skip to content

Commit 23104f3

Browse files
committed
Update source-map benchmarks now that dist/ has been removed.
1 parent 85d2fc6 commit 23104f3

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ node_modules/*
55
build/
66
package-lock.json
77
bench/*.svg
8+
bench/dist/
9+
bench/node_modules
810
.nyc_output/
911
coverage/

bench/bench.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h1>Benchmark <code>mozilla/source-map</code></h1>
7070
<script src="angular-min-source-map.js"></script>
7171
<script src="scalajs-runtime-sourcemap.js"></script>
7272
<script src="stats.js"></script>
73-
<script src="../dist/source-map.js"></script>
73+
<script src="dist/source-map.js"></script>
7474
<script src="bench.js"></script>
7575
<script src="bench-dom-bindings.js"></script>
7676
</body>

bench/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "source-map-internal-benchmark",
3+
"private": true,
4+
"scripts": {
5+
"build": "webpack"
6+
},
7+
"dependencies": {
8+
"webpack": "^4.9.1",
9+
"webpack-cli": "^3.1"
10+
}
11+
}

bench/webpack.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const path = require("path");
2+
const distDir = path.join(__dirname, "dist");
3+
4+
module.exports = {
5+
context: path.join(__dirname, ".."),
6+
entry: "./source-map.js",
7+
mode: "production",
8+
optimization: {
9+
minimize: false,
10+
},
11+
output: {
12+
path: distDir,
13+
filename: "source-map.js",
14+
library: "sourceMap",
15+
libraryTarget: "umd",
16+
},
17+
};

0 commit comments

Comments
 (0)