Skip to content

Commit

Permalink
fix: remove export shim
Browse files Browse the repository at this point in the history
  • Loading branch information
vHeemstra authored Jul 10, 2024
2 parents 6816222 + 06e4b3a commit b02c313
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,3 @@ const testOptions = {
export default fillPotPo;
export { fillPotPoSync as sync, testOptions, prepareOptions };
// export { fillPotPo as default, fillPotPoSync as sync, testOptions, prepareOptions };

/**
* Unfortunately needed shim for fixing the problem with ugly import syntax.
* Before:
* `const fillPotPo = require('fill-pot-po').default`
* After:
* `const fillPotPo = require('fill-pot-po')`
* See: https://github.com/egoist/tsup/issues/255#issuecomment-784856826
*/
/* eslint-disable */
if (typeof module !== 'undefined') {
// @ts-ignore
fillPotPo.sync = fillPotPoSync;
// @ts-ignore
fillPotPo.testOptions = testOptions;
// @ts-ignore
fillPotPo.prepareOptions = prepareOptions;
// @ts-ignore
module.exports = fillPotPo;
// @ts-ignore
module.exports.default = fillPotPo;
}
/* eslint-enable */

0 comments on commit b02c313

Please sign in to comment.