From 4f86ee385551d6d9eea6af460d0ad33477dacbeb Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Wed, 1 Nov 2023 23:25:45 +0100 Subject: [PATCH] feat: add ESM bundle --- packages/npm/index.html | 5 +- packages/npm/lightweight/index.js | 1 + packages/npm/lightweight/package.json | 4 ++ packages/npm/package.json | 21 ++++--- packages/npm/rollup.config.js | 67 +++++++++++++---------- packages/npm/src/browser.js | 7 --- packages/npm/src/factory.js | 30 ---------- packages/npm/src/lightweight.mjs | 22 ++++++++ packages/npm/src/node.js | 30 ++++++++-- packages/npm/test/browser-globals.js | 34 ------------ packages/npm/test/build.mjs | 22 ++++++++ packages/npm/test/clients.js | 9 --- packages/npm/test/clients.mjs | 7 +++ packages/npm/test/{index.js => index.mjs} | 4 +- 14 files changed, 136 insertions(+), 127 deletions(-) create mode 100644 packages/npm/lightweight/index.js create mode 100644 packages/npm/lightweight/package.json delete mode 100644 packages/npm/src/browser.js delete mode 100644 packages/npm/src/factory.js create mode 100644 packages/npm/src/lightweight.mjs delete mode 100644 packages/npm/test/browser-globals.js create mode 100644 packages/npm/test/build.mjs delete mode 100644 packages/npm/test/clients.js create mode 100644 packages/npm/test/clients.mjs rename packages/npm/test/{index.js => index.mjs} (94%) diff --git a/packages/npm/index.html b/packages/npm/index.html index 61f0ff5..f61bccc 100644 --- a/packages/npm/index.html +++ b/packages/npm/index.html @@ -57,8 +57,9 @@ debug: writeLog('samp') } - -