From 3300937f071aa4eb201ec9b26b279101d0d37eb3 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 5 Nov 2018 14:26:17 +0200 Subject: [PATCH] add format distinction to phase 2 --- doc/plan-for-new-modules-implementation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/plan-for-new-modules-implementation.md b/doc/plan-for-new-modules-implementation.md index 7fa33b8..0d837cf 100644 --- a/doc/plan-for-new-modules-implementation.md +++ b/doc/plan-for-new-modules-implementation.md @@ -62,6 +62,8 @@ These changes are implemented in https://github.com/nodejs/ecmascript-modules/pu * Define semantics for importing a package entry point, e.g. `import _ from 'lodash'` - Currently this is only possible via an explicit deep import, e.g. `import _ from 'lodash/index.mjs'`. The idea would be to somehow enable the former syntax. - `package.json` `module` field? `main` field? + +* Define semantics for determining when to load sources as CommonJS or ES module for both the top-level main (`node x.js`) and dependency loading. ## Phase 3