From 31363eaea2c525ca3c74e9a9827402c86caf8cd5 Mon Sep 17 00:00:00 2001 From: Mike Fogel Date: Sat, 16 Dec 2023 15:43:17 -0800 Subject: [PATCH] Update benchmark script to be an es module --- bench/bench.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bench/bench.js b/bench/bench.js index 61cf028..aa9db0c 100644 --- a/bench/bench.js +++ b/bench/bench.js @@ -1,10 +1,10 @@ /* eslint no-console: "off" */ -const load = require("load-json-file") -const Benchmark = require("benchmark") -const jstsUnion = require("@turf/union") -const w8r = require("martinez-polygon-clipping") -const mfogel = require("..") +import { default as load } from "load-json-file" +import { default as Benchmark } from "benchmark" +import { default as jstsUnion } from "@turf/union" +import { default as w8r } from "martinez-polygon-clipping" +import { default as mfogel } from "../dist/polygon-clipping.esm.js" /** * Benchmark results ( c9b02e5 )