Questions tagged [umd]

Universal Module Definition (UMD) is an API for JavaScript modules that are capable of working in browsers, on the server, or elsewhere.

Universal Module Definition (UMD) is an API for JavaScript modules that are capable of working in browsers, on the server, or elsewhere.

The UMD pattern typically attempts to offer compatibility with the most popular script loaders of the day (RequireJS, CommonJS, and others). In many cases it uses AMD as a base, with special-casing added to handle CommonJS compatibility.

See the GitHub repo for more information.

170 questions
0
votes
1 answer

UMD: is assigning to module.exports redundant?

I see JS libraries using these two different implementations. Only difference is the CommonJS line. Are they functionally the same? Is assigning the value to module.exports not required? /* 1: Assignment to module.exports */ (function(factory) { …
Rob Flaherty
  • 1,025
  • 6
  • 13
0
votes
1 answer

Test coverage of Browserify standalone (UMD) modules

I use the browserify standalone option in the following gulp tasks to generate an UMD module: gulp.task("bundle-source", function () { var b = browserify({ standalone : 'inversify', entries: __dirname + "/build/source/inversify.js", …
Remo H. Jansen
  • 17,470
  • 9
  • 63
  • 88
0
votes
1 answer

How to use requirejs to load jQuery plugin intlTelInput?

The plugin in question is https://github.com/Bluefieldscom/intl-tel-input. All script tags are inserted by requirejs properly, but I still can't use the plugin intlTelInput. What am I missing? require.config({ baseUrl: "/Scripts/require", …
Believe2014
  • 3,664
  • 2
  • 23
  • 42
-1
votes
1 answer

Typescript compile into UMD module not working

I have a file named a.ts which looks like this: function abc(){ alert("abc()") } export {abc} And a second file named b.ts which looks like this: import * as a from "./a" a.abc(); I compiled it with tsconfig.json of: { "compilerOptions":…
ratsafalig
  • 138
  • 1
  • 11
-1
votes
1 answer

Using React Virtualized Select without node backend

I wanted to use the React Virtualized Select to show almost around 1 million records in a select dropdown. I have already created the project based on flask and angularjs. I wasn't able to find any resources for such a dropdown through angularjs, so…
Naren Murali
  • 12,508
  • 3
  • 19
  • 46
1 2 3
11
12