Skip to content

InternetOfPeers/hedera-sdk-js-standalone-library-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hedera SDK JS Standalone Library

This example shows how to build the Hashgraph SDK library as a standalone js. This is a temporary workaround, waiting for the same feature to be added to the official sdk.

Project Setup

npm install

Compile and Minify for production (lib versions: UMD, UMD minified and CommonJS)

npm run build:lib

Get and use the generated dist/assets/hedera-sdk-js-bundle.umd.min.js file. See public/example-lib.html for an example.

Compile and Minify for production (browser must support type="module")

npm run build

Get and use the generated dist/assets/hedera-sdk-js-bundle.js file. See public/example.html for an example.

Buil and test an example with the browser

npm run preview

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

About

This example shows how to build the Hashgraph SDK library as a standalone js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published