Skip to content

Commit

Permalink
fix: fixing esm exports
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Psztyc <[email protected]>
  • Loading branch information
jarrodek committed Nov 8, 2021
1 parent a324217 commit a6e85ef
Show file tree
Hide file tree
Showing 7 changed files with 1,926 additions and 889 deletions.
2 changes: 2 additions & 0 deletions http.esm.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { SocketRequest } from './request/SocketRequest.js';
export { ElectronRequest } from './request/ElectronRequest.js';
2 changes: 2 additions & 0 deletions http.esm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { SocketRequest } from './request/SocketRequest.js';
export { ElectronRequest } from './request/ElectronRequest.js';
1 change: 1 addition & 0 deletions http.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('esm')(module)('./http.esm.js');
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require = require('esm')(module);
module.exports = require('./index.js');
module.exports = require('esm')(module)('./index.js');
Loading

0 comments on commit a6e85ef

Please sign in to comment.