Skip to content

Commit

Permalink
Restore pre-TypeScript migration export
Browse files Browse the repository at this point in the history
As part of the TypeScript migration in #67 we accidentally made the CommonJS bundle have a `default` export, which wasn’t the case before.

This patch fixes the Rollup configuration to restore the old behavior of `module.export = JSBI`.

Issue: #68, #67
  • Loading branch information
mathiasbynens committed Aug 23, 2021
1 parent 873163c commit ea2af24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export default [
{
file: pkg.main,
format: 'cjs',
exports: 'named',
exports: 'default',
sourcemap: true,
},
// Create a JavaScript module build, for bundlers.
{
file: pkg.module,
format: 'es',
exports: 'named',
exports: 'default',
sourcemap: true,
},
],
Expand Down

0 comments on commit ea2af24

Please sign in to comment.