module: package "imports" field

PR-URL: https://github.com/nodejs/node/pull/34117
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
This commit is contained in:
Guy Bedford authored and Myles Borins committed 2020-07-16 17:09:07 -04:00
1 parent 601ed8ef7e
commit 1ae76bd075
16 files changed
+537 -177

No files matched your search

+1
View File
@@ -957,6 +957,7 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
if (0 == memcmp(s, "type", 4)) break;
} else if (n == 7) {
if (0 == memcmp(s, "exports", 7)) break;
if (0 == memcmp(s, "imports", 7)) break;
}
}