We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
require.addRule(/^modernizr$/i, { path: "modernizr.js", pointcuts: { // before: localize window.document for sandbox before: function() { this.document = window.document; }, // after: capture exports as object, delete from global scope after: function () { module.setExports(window.Modernizr); delete window["Modernizr"]; } } });