Closed drgould closed 6 years ago
This is a lot bigger than I had intended, I just kept finding little things to add. Anyway, here's what's changed:
require.resolve
import 'some/path';
path.sep
/
Imports in the form of import * as A from './a'; seem to throw a/foo.js is not a directory error while failing to create a variable for the import?
import * as A from './a';
a/foo.js is not a directory
This is a lot bigger than I had intended, I just kept finding little things to add. Anyway, here's what's changed:
require.resolve
import 'some/path';
)path.sep
rather than hardcoded/
for better cross-platform support