Skip to content

Commit

Permalink
Made default export for UpgradeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
KD1712 committed Jun 11, 2024
1 parent 4bb8daf commit c4bd47e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 3 additions & 8 deletions clientlibs/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import Assignment from './Assignment/Assignment';
import { UpGradeClientEnums, UpGradeClientInterfaces, UpGradeClientRequests } from './types';
import { MARKED_DECISION_POINT_STATUS } from 'upgrade_types';

export {
UpgradeClient,
Assignment,
UpGradeClientEnums,
UpGradeClientInterfaces,
UpGradeClientRequests,
MARKED_DECISION_POINT_STATUS,
};
export default UpgradeClient;

export { Assignment, UpGradeClientEnums, UpGradeClientInterfaces, UpGradeClientRequests, MARKED_DECISION_POINT_STATUS };
2 changes: 2 additions & 0 deletions clientlibs/js/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const browser = {
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist/browser'),
libraryExport: 'default',
library: 'UpgradeClient',
libraryTarget: 'umd',
globalObject: 'this',
},
Expand Down

0 comments on commit c4bd47e

Please sign in to comment.