Skip to content

Commit

Permalink
Create bundle.ts so the bundles version still contains all classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Jul 21, 2023
1 parent 02ea979 commit ff40531
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/bundle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import LTO from './LTO';
export { LTO };
export { default as Binary } from './Binary';

export * from './accounts';
export * from './errors';
export * from './events';
export * from './identities';
export * from './messages';
export * from './node';
export * from './transactions';
export * from './utils';

export function connect(networkId?: string): LTO {
return new LTO(networkId);
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
experiments: {
outputModule: false,
},
entry: './src/index.ts',
entry: './src/bundle.ts',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
Expand Down

0 comments on commit ff40531

Please sign in to comment.