Make w2ui compatible with CommonJS code
See original GitHub issueIt’d be great if the w2ui
components get added in a modular, CommonJS pattern to be universally used. The current pattern assumes a global w2ui
instance that map to a global jQuery object.
w2ui
, w2obj
and w2utils
should be exposed on the root object, whatever it is (node, module, export, etc) instead of assuming it is being run in a global context.
Issue Analytics
- State:
- Created 10 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Utils: Overview | JavaScript UI - w2ui
It provides a common and uniform way for accessing created objects; It makes sure that you will not overwrite already created object (object...
Read more >Using ES modules with CommonJS modules in Node.js
This is not meant to be a comprehensive overview of ES modules and CommonJS modules — I do not go into depth about...
Read more >Awesome Javascript Overview
Duo (⭐3.4k) - Next-generation package manager that blends the best ideas from Component, Browserify and Go to make organizing and writing front-end code...
Read more >15 best alternatives to w2ui as of 2022 - Slant.Co
Get the answer to "What is the best alternative to w2ui? ... Apps developed with blocks.js are modular in structure and make use...
Read more >Welcome to Everything.js | Everything.js
Code Splitting allows for loading parts of the application on demand. Through “loaders”, modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve created a pull request for this: https://github.com/vitmalina/w2ui/pull/1437
Does this work? I am trying to use it like the example and it keeps saying “jQuery is not defined”, source: /Users/mordonez/repositories/chat/node_modules/requirejs/bin/r.js (392)