JSFiddle - React, Tailwind, and code Playground
JavaScript
if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function') {
var define = function (m, cb) {
//get it's list of modules and load them with require instead
let _m = m.reduce((a, _, i) => (a[i] = require(_) && a), []);
//load them into the callback and assign the output to Node's awareness i.e. `exports`
Object.assign(exports, cb(..._m));
}
}
define(['/'])