Moving Bits, Not Atoms
Mike Sherov
VP of UMD, AMD, CJS, ESM and other such acronyms
The process by which a browser requests, receives, and executes code from a server. This could be HTML, CSS, or JS.
- Me, Just Now
define([
'the/module'
], function(TheModule) {
const a = TheModule('hello world');
return a
});
const TheModule = 'the/module';
const a = TheModule('hello world');
module.exports = a;
import TheModule from 'the/module';
const a = TheModule('hello world');
export default a;
async function initTextEditor() {
const namespaceRecord = await import('textEditor');
const TextEditor = namespaceRecord.default;
const a = TextEditor('hello world');
return a;
}
export default doItLater;