File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
lib/addons/traverse-module-graph Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2727 - uses : ./.github/actions/prepare-rspack-binding
2828 with :
2929 path : ${{ env.RSPACK_DIR }}
30+ ref : pull/8470/head
3031
3132 bench :
3233 needs : prepare-binding
4546 - uses : ./.github/actions/build-rspack
4647 with :
4748 path : ${{ env.RSPACK_DIR }}
49+ ref : pull/8470/head
4850 - name : Run benchmark
4951 run : node bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
5052 - id : print-compare-results
Original file line number Diff line number Diff line change 11import path from "path" ;
2+ import url from "url" ;
23import { Addon } from "../common.js" ;
34
5+ const __dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) ) ;
6+
47export default class extends Addon {
58 options = {
69 times : 10
@@ -10,7 +13,7 @@ export default class extends Addon {
1013 ctx . config +
1114 `
1215module.exports.plugins = module.exports.plugins || [];
13- const TraverseModuleGraphPlugin = require("${ path . join ( __dirname , 'plugin.js ' ) } ");
16+ const TraverseModuleGraphPlugin = require("${ path . join ( __dirname , 'plugin.cjs ' ) } ");
1417module.exports.plugins.push(new TraverseModuleGraphPlugin());
1518` ;
1619 }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments