You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UUID generator can be built to a browser application using browserify, webpack, rollup or similar other bundler. However, if the application is built from pure JavaScript modules or AMD modules, this package cannot be used without an additional bundling work. (Scripts published from the NPM package cannot be loaded by the script element on a web page.)
How about including UMD modules in the NPM package, so that browser applications could load them directly, without each of them building such module themselves internally?
For example, by importing the UUID generator function globally:
@prantlf I'm considering to add a UMD build when releasing the v4.0.0 version of this module so that this library could be loaded directly through the various CDNs that just mirror npm package content.
Until then could you check if #302 (comment) works for you?
The UUID generator can be built to a browser application using browserify, webpack, rollup or similar other bundler. However, if the application is built from pure JavaScript modules or AMD modules, this package cannot be used without an additional bundling work. (Scripts published from the NPM package cannot be loaded by the
script
element on a web page.)How about including UMD modules in the NPM package, so that browser applications could load them directly, without each of them building such module themselves internally?
For example, by importing the UUID generator function globally:
Another example, requiring the UUID generator as an AMD module (using RequireJS, for example):
The text was updated successfully, but these errors were encountered: