Every time I read about this I get more confused. Do you mean by "root conditional export" an export field in manifest that doesn't have `main` or `module`? Because the docs use relative imports in the `exports` field: https://nodejs.org/api/esm.html#esm_exports_sugar …
There's two forms that the root `exports` object can take. It's either conditions like "exports": {"require": "./whatever"}, which is shorthand for "exports": {".": {...}}, but you can't have "exports": {"require": "./whatever", "./foo": {"default": ""}}}.
-
-
So it's about the keys? Because in your screenshot you only had `import` and `require` as keys.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 