Derek Lewis
Derek Lewis
@ljharb, I'm not opposed to keeping the leading `/` to mean relative to the filesystem root as you like. I quite like it that way too. I was simply proposing...
> @DerekNonGeneric that seems like you just want to run a chroot around node, not that node would actually need to do anything. @bmeck, that's not cross-platform, I don't understand...
FS Root, just like you said, right?
```sh C:\>node --eval "require('/index.js')" C:\index.js:3 export {}; ^^^^^^ SyntaxError: Unexpected token 'export' ```
@shrpne, if none of the solutions above work, you may have success with the following. `import { default as namespace } from 'cjs-package-specifier';`
> Please don't call the exports object a "namespace" in the context of ESM. A couple links about ES module namespace objects from the ES2020 spec: - [26.3 Module Namespace...
@jkrems, would you mind clarifying what the contents of `RESOLUTIONS` is in your example? I also don't understand why you are writing to a file?
It seems like this is the data structure. Can you reconfirm? ```js // @nodejs/resolver-conformance-tests // RESOLUTIONS export default [ { // resolutionTest[0] /** @type {Array} Array of conditional exports condition...
> The test case is writing files to realize the file layout for the active test case because it’s not a given that the resolver under test directly interacts with...
If I understand correctly, `files` is an array of objects each with a potentially different value for the `content` (source text) key. I imagine they would be duplicates, so why...