185 questions for “ES Modules”

Found in 1 field. Select a question to see its full answer.

Information Technology

185 questions in 11 technologies

#QuestionTechnologyTopicLevel
1What's the difference between ES Modules and CommonJS (require/module.exports)? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
2What are import maps and what problem do they solve for browser-native ES Modules? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
3How do circular module dependencies in TypeScript behave differently depending on whether the compiled output targets CommonJS or ES Modules? TypeScript › ModulesTypeScriptModulesAdvanced
4What is the difference between require() (CommonJS) and import (ES Modules) when loading Node.js's own core modules? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
5How does top-level await work, and what constraint does it place on modules that import that module? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
6How would you migrate a legacy namespace-organized codebase to ES Modules, and what pitfalls commonly arise? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
7What is the difference between __dirname/__filename in CommonJS and their equivalents in ES Modules? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
8Why are ES Module imports 'hoisted' and evaluated before the rest of the module's code runs? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
9What does 'live binding' mean for ES Module exports, and how does it differ from CommonJS? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
10How do you import everything from a module under one namespace object? JavaScript › ES ModulesJavaScriptES ModulesBeginner