Better support for JavaScript Module Systems(CommonJS, AMD, ES2015 etc)
as of now if we have to use this library with one of the module systems then we will have to include/load hello.all.js even if I want use only one or two of the social modules. It would be better if we can selectively include/load only the social modules we require.
Please contribute to the next iteration https://github.com/MrSwitch/hello.js/pull/485:)
Install the next version...
npm i hellojs@next --save
Will we be / Are we able to import (webpack) just parts of hello, e.g. core,facebook,gmail ? It would reduce payload so much... I cannot find any docs for that.
@murbanowicz you should be able to do that already,
// Core
const hello = require('hello/dist/hello.js`); // Set's global object
// Modules
require('hello/src/modules/google'); // uses global object, no need to pass through local hello
hello.init({
google: [google_id]
});
// do something
hello('google').getAuthResponse();