MCPcopy Create free account
hub / github.com/KDE/ghostwriter / createCommonjsModule

Function createCommonjsModule

3rdparty/react/html-react-parser.js:611–614  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

609 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
610
611 function createCommonjsModule(fn) {
612 var module = { exports: {} };
613 return fn(module, module.exports), module.exports;
614 }
615
616 // http://www.w3.org/TR/CSS21/grammar.html
617 // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027

Callers 1

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected