From bec15240ea67e9d296ac94093974d7d831239e8d Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Thu, 19 Nov 2020 00:56:25 +0100 Subject: [PATCH] fix: properly export io in ES modules wrapper The syntax was invalid: ``` export const io = io; ^ SyntaxError: Identifier 'io' has already been declared at Loader.moduleStrategy (internal/modules/esm/translators.js:122:18) ``` --- wrapper.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper.mjs b/wrapper.mjs index 50ec133eb..7433e4780 100644 --- a/wrapper.mjs +++ b/wrapper.mjs @@ -1,5 +1,5 @@ import io from "./build/index.js"; export const Manager = io.Manager; -export const io = io; +export { io }; export default io;