Skip to content

Commit

Permalink
fix: add io as named exports
Browse files Browse the repository at this point in the history
The TypeScript (build/index.d.ts) and ES modules exports did not match,
which caused issues with webpack and ts-loader.

Related: #1396
  • Loading branch information
darrachequesne committed Nov 17, 2020
1 parent 96cd2c9 commit 7b3ec9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrapper.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io from "./build/index.js";

export const Manager = io.Manager;
export const io = io;
export default io;

1 comment on commit 7b3ec9f

@josuedzp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change do error in compiled of webpack because 'io' is already declared.
image

Please sign in to comment.