File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,7 @@ node_modules/*
55build /
66package-lock.json
77bench /* .svg
8+ bench /dist /
9+ bench /node_modules
810.nyc_output /
911coverage /
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments