Skip to content

Commit 0cc423e

Browse files
committed
fix: cjs bundle was broken
1 parent c964c57 commit 0cc423e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ module.exports = [
5151
file: `dist/${name}.cjs.js`,
5252
format: 'cjs',
5353
sourcemap: true,
54+
exports: 'named'
5455
},
55-
plugins: [typescript()],
56-
external: ['form-data', 'isomorphic-fetch', 'workfront-api-constants'],
56+
plugins: [typescript(), commonjs({ extensions: ['.js', '.ts'] })],
57+
external: ['tslib', 'form-data', 'isomorphic-fetch', 'workfront-api-constants'],
5758
},
5859
]

0 commit comments

Comments
 (0)