From d3f5f4a913d1f6136369d34a26bd1bbda490c682 Mon Sep 17 00:00:00 2001 From: Odin H B Date: Tue, 12 Mar 2024 08:19:19 +0100 Subject: [PATCH] Keep the node benchmark in es format --- package.json | 2 +- rollup.nodebench.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d605457..34d77be 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build-bench": "npm-run-all build-browserbench build-nodebench", "build-browserbench": "rollup -c rollup.browserbench.config.js", "build-nodebench": "rollup -c rollup.nodebench.config.js", - "benchmark-in-node": "node tmp/bench.node.js", + "benchmark-in-node": "node tmp/bench.node.mjs", "minify": "uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map", "size": "echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"", "test": "mocha --compilers js:babel-register test/**/*.js", diff --git a/rollup.nodebench.config.js b/rollup.nodebench.config.js index 7f57171..e104b13 100644 --- a/rollup.nodebench.config.js +++ b/rollup.nodebench.config.js @@ -7,7 +7,7 @@ let pkg = JSON.parse(fs.readFileSync('./package.json')); export default { entry: 'bench.js', - dest: 'tmp/bench.node.js', + dest: 'tmp/bench.node.mjs', sourceMap: 'inline', format: 'es', globals: {