Is it possible to have the Blockstack.js as a just a script that we can use
Like just importing it into a HTML file and start using blockstack,js as
blockstack.function(){
something;
}
I love blockstack but I don’t like to use the npm way to do it. And it has some issues in versions also. That’s why this idea.
…
Regards, @karanganesan
I downloaded the latest version of blockstack.js from the dist folder and tried to include it as a normal .js script from my html code. However, my editor flags over a 100 errors in the blockstack.js file. I haven’t looked at the details of the errors yet, but I am wondering if I need to include any dependencies with blockstack.js
The JavaScript does use ES6 features, so you may see errors if your editor/browser does not support that. You could transpile it to support older browsers, but there is not much point because the blockstack rendered JavaScript used during authentication also uses ES6.