Currently when using the --experimental-resolve-self flag, with the following:
{
"name": "test",
"exports": "./test.js"
}
If including a require('test') in the test.js file and running node --experimental-resolve-self pkg/test.js this will throw an error.
It works with "main" and exports subpaths though so may be a sugar-specific or main-specific error case for this flag.
Currently when using the
--experimental-resolve-selfflag, with the following:{ "name": "test", "exports": "./test.js" }If including a
require('test')in thetest.jsfile and runningnode --experimental-resolve-self pkg/test.jsthis will throw an error.It works with "main" and exports subpaths though so may be a sugar-specific or main-specific error case for this flag.