Open guybedford opened 9 years ago
This could be supported by rewriting require.resolve('x') to System.normalizeSync('x', module.uri).
require.resolve('x')
System.normalizeSync('x', module.uri)
Unfortunately, this wouldn't be quite sufficient, as System.normalizeSync returns a file uri, whilst require.resolve returns a file path.
This could be supported by rewriting
require.resolve('x')
toSystem.normalizeSync('x', module.uri)
.