From 2f601686ba10721914ba00fb335b7579948876ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico=20Pereira=20C=C3=A2mara?= Date: Mon, 28 Jun 2021 13:05:31 -0300 Subject: [PATCH 1/7] Convert main source code to use ES module --- lib/{sinon-chai.js => sinon-chai.mjs} | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) rename lib/{sinon-chai.js => sinon-chai.mjs} (89%) diff --git a/lib/sinon-chai.js b/lib/sinon-chai.mjs similarity index 89% rename from lib/sinon-chai.js rename to lib/sinon-chai.mjs index 194dc3a..5040cd1 100644 --- a/lib/sinon-chai.js +++ b/lib/sinon-chai.mjs @@ -1,24 +1,5 @@ -"use strict"; -/* eslint-disable no-invalid-this */ - -(function (sinonChai) { - // Module systems magic dance. - - /* istanbul ignore else */ - if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { - // NodeJS - module.exports = sinonChai; - } else if (typeof define === "function" && define.amd) { - // AMD - define(function () { - return sinonChai; - }); - } else { - // Other environment (usually