Skip to content

Commit

Permalink
fix: cjs bundle was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
bhovhannes committed May 12, 2020
1 parent c964c57 commit 0cc423e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ module.exports = [
file: `dist/${name}.cjs.js`,
format: 'cjs',
sourcemap: true,
exports: 'named'
},
plugins: [typescript()],
external: ['form-data', 'isomorphic-fetch', 'workfront-api-constants'],
plugins: [typescript(), commonjs({ extensions: ['.js', '.ts'] })],
external: ['tslib', 'form-data', 'isomorphic-fetch', 'workfront-api-constants'],
},
]

0 comments on commit 0cc423e

Please sign in to comment.